Arduino Esplora Blink Code

Arduino Esplora Blink (1)

This sketch blinks the Esplora’s RGB LED. It goes through all three primary colors (red, green, blue), then it combines them for secondary colors(yellow, cyan, magenta), then it turns on all the colors to create white.

For best results, cover the LED with a piece of white paper to see the colors blend.


Arduino Esplora Blink (1)

Only your Arduino Esplora is needed for this example. Connect the Esplora to your computer with a USB cable.


The RGB LED is comprised of three colors that represent the three primary colors: red, green, and blue.

To control all the colors with one instruction you use the writeRGB() function. It take three arguments. Each value represents the brightness of the red, green, and blue element, respectively. The brightness scales between 0 (for completely off) to 255 (for completely on).

After setting the brightness of an LED, use delay() to pause the sketch for a second, so the light stays in the state you left it.

It’s also possible to control each light individually with the following functions :

Read more: Arduino Esplora Blink Code

Leave a Comment

Your email address will not be published. Required fields are marked *