Show minor edits - Show changes to markup
delay(1000);
writeRGB(red, green, blue)
Esplora.writeRGB(red, green, blue)
Write to the RGB led the three colour components, Red-Green-Blue, to produce the desired color.
Write values representing brightness to the RGB LED. By mixing different values, it's possible to create different color combinations.
red: this valute is to set the red led brightness. Range: from 0 to 255 green: this valute is to set the green led brightness. Range: from 0 to 255 blue: this valute is to set the blue led brightness. Range: from 0 to 255
[@
(:source lang=arduino tabwidth=4:)
@]
(:sourceend:)
Write to the RGB led the three colour components, Red-Green-Blue, to produce the desired color.
writeRGB(red, green, blue)
red: this valute is to set the red led brightness. Range: from 0 to 255 green: this valute is to set the green led brightness. Range: from 0 to 255 blue: this valute is to set the blue led brightness. Range: from 0 to 255
nothing
#include <Esplora.h>
void setup() {}
void loop()
{
Esplora.writeRGB(0, 128, 255);
delay(1000);
Esplora.writeRGB(255, 0, 128);
delay(1000);
Esplora.writeRGB(128, 255, 0);
}