Show minor edits - Show changes to markup
writeRed(value)
Esplora.writeRed(value)
Write to the red led the brightness value.
Write values to the red LED that correspond to the brightness.
writeRed(redValue)
writeRed(value)
red: this valute is to set the red led brightness. Range: from 0 to 255
value: int, value to set the red LED brightness. Range 0 to 255
[@
(:source lang=arduino tabwidth=4:)
@]
(:sourceend:)
Read the brightness value of the red led.
Write to the red led the brightness value.
readRed()
writeRed(redValue)
none
red: this valute is to set the red led brightness. Range: from 0 to 255
Return the red colour value in the range from 0 to 255.
nothing
void setup()
void setup() {}
void loop()
Serial.begin(9600);
for(int i=0; i<256; i++)
{
Esplora.writeRed(i);
delay(100);
}
void loop() {
int dimmerValue = Esplora.readSlider(); Esplora.writeRed(dimmerValue); Serial.println(Esplora.readRed());
delay(500);
}
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);
}