Here’s a “LED Candle” project I made as a birthday present. It uses a Beetle board and an @Adafruit_Industries Neopixel ring, and of course FastLED! More details are listed in the video description.
The code that reads the right potentiometer is setup so it switches the candle into one of three different modes. When reading the pot value (0-1023), if it is less then 40 it runs in “normal candle mode”. If the pot reads 41 to 949 then that value is scaled into the range 0-255 which allows the user to dial in a specific (FastLED) hue. And if the pot reads 950+ the candle goes into “random mode” and picks between several different colorful displays/random patterns, switching every minute. The beauty of having NUM_LEDS be only 12 pixels allowed me to keep my FPS in the range of ~140 to 500+ depending on what mode it was running. I also added a call to the function that read the current pot values in several select places in the code so I could keep the knobs fairly responsive even when the FPS were on the lower end.
As the birthday day approached, of course I ran out of time coding it to what I fully wanted, but that’s what version #2 will be for, right?
I do feel like I improved my still basic coding skills though, and had a lot of fun learning a variety of new stuff on this project.
and a second one:
Here’s the link.