Home ArduinoArduino Code Esplora RGB LED example

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

[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

You may also like