Arduino Function: Esplora.readRed

Description

Read the brightness value of the red LED.

Syntax

Esplora.readRed()

Returns

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

Examples

#include <Esplora.h>

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

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

delay(500);
}


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