I have an addressable LED strip. I want to turn on green Color onl to all over the strip.
I tried the following piece of code. HOwever, the result is not as desired.
I have given power both from power source snd arduino. When I do leds[0] = CRGB::Green;, the first led is turned green color. But I need the whole strip to be of green color.
Which power source? E.g. a cellphone charger will not be enough for 200 leds. To do 200 leds in only green, you need 200 x 20 mA equals 4A; add some overhead and make it 5A. If you want them all white at the same time, you will need 3 times that.
Did you update your first post with pictures ? Or did I miss the "RGBW" on the label ?
If you update your first post, then the flow of the discussion gets disturbed.
You can not use the FastLED in RGB mode to control RGBW leds. You need a signal for the SK6812 RGBW.
I'm afraid that Wokwi has no simulated RGBW ledstrip, but I have a project with the SK6812 RGBW.
You can do a test with Adafruit's Neopixel Library, But as RGBW.
Adafruit writes:
We have a tutorial showing wiring, power usage calculations, example code for usage, etc. for NeoPixel Please check it out!Please note you will need a NeoPixel library with RGBW support which is not always available. If you try to control these with a plain 'RGB' NeoPixel library, you'll get very weird results. Our Adafruit NeoPixel library does support RGBW but if you're using something else, just be aware that it might require some hacking. Also, the Blue LED element is close to the white phosphor and the light bleeds into it, so blue light will have a mix of white as well.