Show minor edits - Show changes to markup
readRed()
Esplora.readRed()
Read the brightness value of the red led.
Read the brightness value of the red LED.
Return the red colour value in the range from 0 to 255.
int : the brightness of the red LED between 0 and 255.
[@
(:source lang=arduino tabwidth=4:)
@]
(:sourceend:)
Read the brightness value of the red led.
readRed()
none
Return the red colour value in the range from 0 to 255.
#include <Esplora.h>
void setup()
{
Serial.begin(9600);
}
void loop()
{
int dimmerValue = Esplora.readSlider();
Esplora.writeRed(dimmerValue);
Serial.println(Esplora.readRed());
delay(500);
}