Neopixel Rings
http://www.adafruit.com/products/1643?gclid=CPO58JGEvcQCFdgYgQod7rYA9w
These are really cool! You can make the lights spin around at different speeds and colors-
sample code:
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(16, 6, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // This initializes the NeoPixel library.
}
void loop() {
// For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.
for(int i=0;i< 16;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.
pixels.setPixelColor(16 - i, pixels.Color(150,0,0)); // Moderately bright red color.
pixels.setPixelColor(17 - i, pixels.Color(0,0,150)); // bright blue
pixels.show(); // This sends the updated pixel color to the hardware.
delay(100); // Delay for a period of time (in milliseconds).
pixels.setPixelColor(i, pixels.Color(0,0,0)); // turn off LEDs
pixels.setPixelColor(16 - i, pixels.Color(0,0,0)); // turn off LEDS
pixels.setPixelColor(17 - i, pixels.Color(0,0,0));
}
}
These are really cool! You can make the lights spin around at different speeds and colors-
sample code:
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(16, 6, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // This initializes the NeoPixel library.
}
void loop() {
// For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.
for(int i=0;i< 16;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.
pixels.setPixelColor(16 - i, pixels.Color(150,0,0)); // Moderately bright red color.
pixels.setPixelColor(17 - i, pixels.Color(0,0,150)); // bright blue
pixels.show(); // This sends the updated pixel color to the hardware.
delay(100); // Delay for a period of time (in milliseconds).
pixels.setPixelColor(i, pixels.Color(0,0,0)); // turn off LEDs
pixels.setPixelColor(16 - i, pixels.Color(0,0,0)); // turn off LEDS
pixels.setPixelColor(17 - i, pixels.Color(0,0,0));
}
}