Reference.EsploraReadGreen History

Show minor edits - Show changes to markup

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

readGreen()

to:

Esplora.readGreen()

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

Read the brightness value of the green led.

to:

Read the brightness value of the green LED.

Changed lines 19-20 from:

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

to:

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

Changed line 23 from:

[@

to:
Changed lines 39-40 from:

@]

to:
Deleted line 43:
December 03, 2012, at 05:25 PM by Federico -
Added line 44:
December 03, 2012, at 05:25 PM by Federico -
Added lines 1-43:

Esplora

readGreen()

Description

Read the brightness value of the green led.

Syntax

readGreen()

Parameters

none

Returns

Return the green 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.writeGreen(dimmerValue);
 Serial.println(Esplora.readGreen());

 delay(500);
}

See also

readRed()
readBlue()

Share