In progress Halloween – PART 2

Hi Guys!

Here is a little insight into how my Halloween costume is going.

The soldering of the Neopixels was harder then I had expected and, with having to leave town this weekend for family needs, I needed to adjust my end plans and make my LED circuit into a glowing neck pendant. I also ran into some issues with uploading code from my computer to the Gemma board (apparently the new macs need a new cord to be compatible).

Despite all of this, things were going well and I was finishing up the construction and trying to learn/understand code when… my soldering snapped.  🙁


#define PIN 6

#define NUM_LEDS 6

#define BRIGHTNESS 50

// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream, correct if colors are swapped upon testing
// NEO_RGBW Pixels are wired for RGBW bitstream
// NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels)
// NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);

uint32_t Gold = strip.Color(255,206,0);
uint32_t Turq = strip.Color(41,196,204);
uint32_t Green = strip.Color(22,142,42);
uint32_t White = strip.Color(75,75,75);
uint32_t Blank = strip.Color(0,0,0);
uint8_t count;

void setup() {
strip.begin();; // initialize all pixels to “off”

//Main program box
void loop() {

for (count = 0; count < 5; count++) {

// Brightness Function
void Fade(uint32_t color) {
uint16_t i, j;

//Increase brightness sub-loop
for (j = 0; j < 75; j++) {
for (i = 0; i < strip.numPixels(); i++) { strip.setPixelColor(i, color); strip.setBrightness(j); }; delay(50); } // Decrease brightness sub-loop for (j = 75; j > 0; j–) {
for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, color);


// Snake Function
void Snake(uint32_t color) {
uint16_t i;

for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, Blank); //Clears pixel memory to start Snake;
strip.setBrightness(50); //Resets brightness after Fade
//Snake loop
for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, color);;
strip.setPixelColor(i, Blank);
strip.setPixelColor(i+1, color);;

I’ve included my code below to share with you all and hope that tomorrow I can fix the soldering and show you in person!


One thought on “In progress Halloween – PART 2”

Comments are closed.

%d bloggers like this: