ARDUINO ESPLORA

All pictures are for illustrative purposes only.

PID# 15085

CA$65.00
Free shipping: On orders over $120 within BC

1 In Stock

Order now, processed next business day

Quantity

Request a large quantity quote

Description

ARDUINO ESPLORA

Get started at the official arduino esplora site: http://arduino.cc/en/Guide/ArduinoEsplora

Copy the code below, and paste it into the Arduino IDE. Make sure you have the right serial port and the Esplora board selected, as you did previously. Plug your board in and upload the code. Once it is uploaded, you should see the RGB LED flashing.

 

// include the Esplora library
#include <Esplora.h>

void setup() {
  // nothing to setup 
}

void loop() {

  // write light level to the red LED
  // 0 means the LED is off, 255 is full brightness
  Esplora.writeRed(255);

  // add a delay to keep the LED lit for 
  // 1000 milliseconds (1 second)
  delay(1000);

  // turn the red LED off, and the green LED on
  Esplora.writeRed(0);
  Esplora.writeGreen(255);

  // add a delay
  delay(1000);

  // turn the green LED off, and the blue LED on
  Esplora.writeGreen(0);
  Esplora.writeBlue(255);

  // add a delay  
  delay(1000);

  // turn all the LEDs on together
  Esplora.writeRGB(255, 255, 255);

  // add a delay  
  delay(1000);

  // turn the LEDs off
  Esplora.writeRGB(0, 0, 0);

  // add a delay  
  delay(1000);
}