Reference.EsploraReadRed History

Show minor edits - Show changes to markup

December 07, 2012, at 11:04 PM by Scott Fitzgerald -
Changed lines 11-12 from:

readRed()

to:

Esplora.readRed()

Deleted line 43:
December 04, 2012, at 08:43 PM by Scott Fitzgerald -
Changed lines 7-8 from:

Read the brightness value of the red led.

to:

Read the brightness value of the red LED.

Changed lines 19-20 from:

Return the red colour value in the range from 0 to 255.

to:

int : the brightness of the red LED between 0 and 255.

Changed line 23 from:

[@

to:
Changed lines 39-40 from:

@]

to:
December 03, 2012, at 05:23 PM by Federico -
Added lines 1-44:

Esplora

readRed()

Description

Read the brightness value of the red led.

Syntax

readRed()

Parameters

none

Returns

Return the red colour value in the range from 0 to 255.

Example

#include <Esplora.h>

void setup() 
{
 Serial.begin(9600);
} 

void loop()
{
 int dimmerValue = Esplora.readSlider();
 Esplora.writeRed(dimmerValue);
 Serial.println(Esplora.readRed());

 delay(500);
}

See also

readGreen()
readBlue()

Share