while I'm waiting for some hardware to go future with my other projects I play around with a 2812 RGB-stripe. For now any because my wife like that also (great! Some thing to upper the WAF) I have just create a simple clock with 12 LED's. I use a S07S for that with the last 1M VCC-build. The stripe have it's own power source (5V 5A PSU), the ESP is connected to a buffered powerpack.
What I have learned is that the stripes / the 2812 and/or the NeoPixel- plugin aren't stable. Sometimes one or more unaddressed LED comes up with a random color, sometimes the whole stripe show me the "finger" and all or most of all LED show any random color.
The rule is very simple:
Code: Select all
On Clock#Time=all,**:** Do
TaskValueSet,tick,h,%syshour%
TaskValueSet,tick,m,%sysmin%
If [tick#h] > 12
TaskValueSet,tick,h1,[tick#h]-12
Elseif [tick#h] = 0
TaskValueSet,tick,h1,12
Else
TaskValueSet,tick,h1,[tick#h]
Endif
NeoPixelLine,[tick#h1],12,25,25,0
NeoPixelLine,1,[tick#h1],25,25,60
If [tick#m] < 5
TaskValueSet,tick,m1,12
Else
TaskValueSet,tick,m1,[tick#m]/5
Endif
NeoPixel,[tick#m1],180,20,40
Endon