Arduino Function: Esplora.readGreen

Description

This function reads the brightness value of the green LED.

Syntax

Esplora.readGreen()

Returns

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

Examples

#include <Esplora.h>

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

void loop()
{
int dimmerValue = Esplora.readSlider();
Esplora.writeGreen(dimmerValue);
Serial.println(Esplora.readGreen());

delay(500);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc