On the new 5m strip, I do not get the chase. I have changed "NEO_GRB" to "NEO_RGBW" as per the library entry. I get 5V on the arduino header, and also read 5v on the output end of the strip. (I am not confusing the ends of the strip.)
I will post the ardunio code below.
Code: Select all
// Simple NeoPixel test. Lights just a few pixels at a time so a
// long strip can safely be powered from Arduino 5V pin. Arduino
// may nonetheless hiccup when LEDs are first connected and not
// accept code. So upload code first, unplug USB, connect pixels
// to GND FIRST, then +5V and digital pin 6, then re-plug USB.
// A working strip will show a few pixels moving down the line,
// cycling between red, green and blue. If you get no response,
// might be connected to wrong end of strip -- look for the data
// direction arrows printed on the strip.
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define N_LEDS 150// 5 meter reel @ 30 LEDs/m
Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_RGBW + NEO_KHZ800);
void setup() {
strip.begin();
}
void loop() {
chase(0xFF0000); // Red
chase(0x00FF00); // Green
chase(0x0000FF); // Blue
}
static void chase(uint32_t c) {
for(uint16_t i=0; i<strip.numPixels()+4; i++) {
strip.setPixelColor(i , c); // Draw new pixel
strip.setPixelColor(i-4, 0); // Erase pixel a few steps back
strip.show();
delay(25);
}
}