HI! I have a 24-RGB LED neopixel ring and when I tell it to display all red, it sisplays red and then starts changing colors. the colors are just random, and I tell it to only display red. How do I fix it?
Using: Audrino Uno
Power: 2amp 5v power supply
Library: I tried neopixel's, and I tried FastLED.
Sketch:
#include <Adafruit_NeoPixel.h>
#define PIN 6
Adafruit_NeoPixel strip = Adafruit_NeoPixel(23, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
strip.begin();
strip.show();
strip.setBrightness(25);
strip.setPixelColor(0,0,0,255);
strip.setPixelColor(1,255,0,0);
strip.setPixelColor(2,255,0,0);
strip.setPixelColor(3,255,0,0);
strip.setPixelColor(4,255,0,0);
strip.setPixelColor(5,255,0,0);
strip.setPixelColor(6,255,0,0);
strip.setPixelColor(7,255,0,0);
strip.setPixelColor(8,255,0,0);
strip.setPixelColor(9,255,0,0);
strip.setPixelColor(10,255,0,0);
strip.setPixelColor(11,255,0,0);
strip.setPixelColor(12,0,0,255);
strip.setPixelColor(13,255,0,0);
strip.setPixelColor(14,255,0,0);
strip.setPixelColor(15,255,0,0);
strip.setPixelColor(16,255,0,0);
strip.setPixelColor(17,255,0,0);
strip.setPixelColor(18,255,0,0);
strip.setPixelColor(19,255,0,0);
strip.setPixelColor(20,255,0,0);
strip.setPixelColor(21,255,0,0);
strip.setPixelColor(22,255,0,0);
strip.setPixelColor(23,255,0,0);
}
void loop() {
// put your main code here, to run repeatedly:
strip.show();
delay(1000);
}