These are chat archives for Makuna/NeoPixelBus

17th
Apr 2016
marksev1
@marksev1
Apr 17 2016 21:35
Makuna, could you maybe post some more examples which are either time based, like that it flicks at certain frequency (dunno), or based on position of pixels in strip :).
Michael Miller
@Makuna
Apr 17 2016 21:40
Eh? All the animations are based at running at a certain frequency. This is what the time value that is passed in means. To translate frequency to time, just divide 1000 by the frequency you want.
time value for 60 hz = 1000 / 60
And both NeoPixelFunLoop and NeoPixelCylon show techniques for animating positions.
marksev1
@marksev1
Apr 17 2016 21:46
i was thinking more in the regard that the light stops for some time and then comes back
Michael Miller
@Makuna
Apr 17 2016 21:49
While you can do that with an animation, that is something better handled by my Task library (examples of blinking LEDs).
The animation is passed an argument that has a flag that helps.
But, just use one animation to time (when complete) to start another animation that turns it on; and use another to time (again, when its complete) to start another animation that turns it off.