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

Code

[codesyntax lang=”cpp”]

#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);
}

[/codesyntax]

 

Links

 

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

Related posts

Arduino and GY-21P readings on a web page

MPL3115A2 sensor readings displayed on a web page

Adafruit Neopixel shield examples