Reference   Language | Libraries | Comparison | Changes

Esplora

readGreen()

Description

Read the brightness value of the green LED.

Syntax

Esplora.readGreen()

Parameters

none

Returns

int : the brightness of the green LED between 0 and 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() Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share