WS2812 Project Help
livinlowe
Posts: 28
Hello everyone! I have a project in mind using 10 WS2812 leds that would light up sequentially starting from 1 to 10, with each LED starting black and smoothly lighting up to white (yellow, orange, red, then white kind of like an ember heating up to white hot). Been playing with Jonnymac's single shot demo program( Ive got the leds to cycle through colors with the demo program), and to be honest I'm over my head as i can't see any commands in the driver program that will set just one LED to a color, not the whole strip. Also, my programming skills are....well I don't have them! Yet, lol. Can anyone steer me to what commands in the driver program one would use to accomplish this task.
Thanks in Advance,
Shawn
Thanks in Advance,
Shawn
Comments
If you look at post #2 of the first link in the "Similar Threads" section, you'll see description of my "MergeColors" algorithm. It lets you blend colors between LEDs. It seems like it would be useful to your project.
I've done something very similar. This code does what i think you requested - goes from black to red, through orange to yellow, then on to white, over a few seconds. You need Jon McPhalen's WS2812 driver from the obex
ignore the 'phantom 1's comments'..
Here are some examples:
The only reason to use the single-shot version is if you want to control more than one physical string with the same cog. If you have just one output to the WS2812s, use my standard driver -- very easy.
The first LED in the stand is channel #0. You're just telling the method which LED to set.
Ah! Okay thanks. BTW, I am now using the standard driver not the single shot