Turns an LED that is connected to a PWM into a flickering candle.
I created this for a halloween project last year. I wanted a semi-realistic 'candle' to go inside of my animatronic pumpkin (The Chomp-O-Lantern).
- Include candle.h
Declare a candle:
In setup() call candle.setup, specifying the pin number: candle.setup(11);
In your main loop simply call candle.flicker();