Hello all.
I have a Strip LED Adafruit 2582, but i never get any RGB color.
All my 3 led colors light wight, no color at all.
My main code :
#define DATAPIN 11 // 4 et 5 if not using spi.h
#define CLOCKPIN 13
#define NUMPIXELS 2 // Number of LEDs in strip
Adafruit_DotStar strip(NUMPIXELS, DOTSTAR_BRG);
void setup() {
strip.begin(); // Initialize pins for output
strip.show(); // Turn all LEDs off ASAP
}
uint32_t red = 0xFF0000; // 'On' color (red) -
uint32_t green = 0x00FF00; // 'On' color (green) -
uint32_t blue = 0x0000FF; // 'On' color (blue) -
void loop() {
strip.fill(red, 0, 2);
strip.show();
delay(1000);
strip.fill(green, 0, 2);
strip.show();
delay(1000);
strip.fill(blue, 0, 2);
strip.show();
delay(1000);
}
I can see the three tiers (1/3) led lighting white but never red, green, blue.
It looks like the colors of the strip doesn't work, only in white.
I tried with SPI.h (pin 11 and 13), and with out (pin 3 and 4), but i get the same problem
Thanks for your help
Franck