Esplora RGB LED example

Another feature of the Arduino Esplora is a built in RGB LED, again its fairly simple to use this using the writeRGB function.

You can see the RGB led in the layout diagram below

esplora
esplora

Code

#include <Esplora.h>
 
void setup() 
{
}
 
void loop() 
{
  //RGB led example
  //Esplora.writeRGB(red, green, blue);
  Esplora.writeRGB(0, 0, 255);
  delay(1000);
  Esplora.writeRGB(0, 255, 0);
  delay(1000);
  Esplora.writeRGB(255, 0, 0);
  delay(1000);
}

 

Links

 

Esplora Joystick + Sensor + LED Module Kit Board for Arduino – Deep Blue – $62.13