I am trying to emulate a rotating beacon using a Neopixel ring, but I cannot seem to get the fadeToBlackBy command to do anything but dim the led by the amount placed in the brackets. It never goes to black.
leds[0].fadeToBlackBy( 64 );
FastLED.show(); only dims the led.
Help is greatly appreciated.
Also, if you know a sketch that emulates a slowly revolving beacon, I would greatly appreciate knowing about it!
Are you possibly only calling fadeToBlackBy() only once? You need to keep calling it, as in a loop; each time it will dim slightly, until eventually it goes black.
@Juergen_Bruegl
Juergen, thank you very much! I may be able to use some of those in the future. The sinelon is getting close to what I want, but it is not there, yet. I am trying to emulate the rotating beacon in a lighthouse. The sinelon has the trailing leds dimming, but what I am trying to do is to have led(1) fade up(?) to full brightness, then dim as led(2) increases to full brightness. Then led(2) fades as led(3) increases, etc.
Thanks for your help. I know that I will be using some of your lines of code in the future.
I made two version, setup for 12 pixel Neopixel ring. The second one is based on @Mark_Kriegsman anti-aliased bar example. There are a few variables to play with and direction can be changed by using a negative delta value. http://pastebin.com/j6yZgjBy http://pastebin.com/D7LvW5gy (anti-aliased version)