Example
This example shows how to set the LED color using a HEX value.
#include <NanoPlayBoard.h>
NanoPlayBoard board;
void setup() {
}
void loop() {
board.rgb.setColor("#FF0000");
delay(1000);
board.rgb.setColor("#00FF00");
delay(1000);
board.rgb.setColor("#0000FF");
delay(1000);
}
The source code of this example is available on GitHub.