No dice so far. I am using an Arduino Uno. I plugged the power (Yellow) into the 5v pin, Ground (Black) into the GND pin, and data (Green) into pin 6. Then I used the below code to run the strip. A simple cycle test of R, G, B, W.
Getting no light at all. Does anybody see an issue with my code?
If not then I think the next step is to wire up just some wire leads on a bare NeoPixel strip and see if I can get that working with none of the other stuff. Is that a good next step? Is it possible that I just damaged one of the components during soldering and the whole assembly is broken at some point?
#include <Adafruit_NeoPixel.h>
#define neoPixelPin 6
#define neoPixelCount 8
Adafruit_NeoPixel lidPixel(neoPixelCount, neoPixelCount, NEO_RGBW + NEO_KHZ800);
void setup() {
lidPixel.begin();
lidPixel.show();
Serial.begin(9600);
Serial.println("Starting");
}
void loop() {
for (int i = 0; i < lidPixel.numPixels(); i++) {
lidPixel.setPixelColor(i, lidPixel.Color(255, 0, 0, 0));
}
lidPixel.show();
Serial.println("Red");
delay(1000);
for (int i = 0; i < lidPixel.numPixels(); i++) {
lidPixel.setPixelColor(i, lidPixel.Color(0, 255, 0, 0));
}
lidPixel.show();
Serial.println("Green");
delay(1000);
for (int i = 0; i < lidPixel.numPixels(); i++) {
lidPixel.setPixelColor(i, lidPixel.Color(0, 0, 255, 0));
}
lidPixel.show();
Serial.println("Blue");
delay(1000);
for (int i = 0; i < lidPixel.numPixels(); i++) {
lidPixel.setPixelColor(i, lidPixel.Color(0, 0, 0, 255));
}
lidPixel.show();
Serial.println("White");
delay(1000);
}
EDIT: I soldered wires on a second strip because I'm going to need it anyway. One of the leads was kind of a mess and I had to use some desoldering wire to clean it up. Anyway this strip with just the wires and nothing else didn't work either. So either I messed up the second pixel as well or there is something wrong with my code. I'm hoping for the latter. I certainly hope the NeoPixels aren't this fragile, I can't imagine how they could possibly be used in anything if they were.