#makered Ugly Sweater success!!

Well, that wasn’t so hard. 🙂  I followed this excellent Adafruit tutorial.

And here’s the behind the scenes:

Connecting the neopixel: – to ground; + to vbatt; D10 to –>
Adafruit Flora
Connecting the Flora VBATT, D6, & GND
Underside of shirt

Some weird things about the code.  The RGB didn’t seem to be working properly.  I have v. 1 neopixels and red should be (255,0,0) but it’s (0,255,0). I thought it might be because they were wired for GRB, but green was not (255,0,0). It was (0,0,255).  Since I got it to work, I didn’t spend much time making it perfect. So, just FYI, this is not normal.

And here’s the code:

#include <Adafruit_NeoPixel.h>

#define PIN 10

// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic ‘v1’ (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(3, PIN, NEO_RGB + NEO_KHZ400);

void setup() {
strip.show(); // Initialize all pixels to ‘off’

void loop() {
// Some example procedures showing how to display to the pixels:
colorWipe(strip.Color(0, 255, 0), 50); // Red
colorWipe(strip.Color(0, 0, 255), 50); // Green
colorWipe(strip.Color(255, 255, 255), 50); // white


// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);

One Reply to “#makered Ugly Sweater success!!”

Comments are closed.