lilypad WS2812 LEDs | Botshop

lilypad WS2812 LEDs

R27.00

Out of stock - Join the waitlist to be emailed when this product becomes available

SKU: lily-WS2812-L25 Category:

Description

We know you love adding color to your e-textiles, adding the LilyPad WS2812 LED to your project will only make it better. The board has a WS2812B on it, which is actually an RGB LED with a WS2811 built right into the LED! Several of these breakouts can be chained together to form a display or an addressable string.

 

Example Sketch & Diagram

Libraries:

Adafruit_NeoPixel.zip

Diagram:

Code:

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
 #include <avr/power.h>
#endif

#define PIN 6

#define NUMPIXELS 60

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

int delayval = 500;

void setup() {
#if defined (__AVR_ATtiny85__)
 if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
 pixels.begin();
}

void loop() {
for(int i=0;i<NUMPIXELS;i++){
 pixels.setPixelColor(i, pixels.Color(0,150,0));
 pixels.show();
 delay(delayval); 
 }
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.