I'm trying to use FastLed on some WS2811 led strips but I get a weird behaviour. I'm using a simple code to debug the issue but still not working. Some leds are red but most are blue. I tried all the different LED strip type available in the FastLed Blink example without much difference.
#include <FastLED.h>
#define NUM_LEDS 30
#define DATA_PIN 6
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
}
void loop() {
for (int pos = 0; pos != NUM_LEDS; pos++) {
leds[pos] = CRGB::Red;
}
FastLED.show();
delay(500);
}
LEDs are powered with an external 12v power supply (https://www.amazon.com/gp/product/B00D7CWSCG).
Arduino is powered with a usb cable from my PC.
I tried with a Arduino Mega and Arduino Nano no difference.
(No the correct led strip, I have a WS2811 but it's the closest I found)
Any idea what can be the issue? Thanks