Simulates a candlelight/flame effect while brightness is smoothly raised and smoothly or rapidly reduced. Thus, even if the sketch is still simple, it is a little bit more complex than the very easy candlelight sketches.
https://github.com/etkaar/CandleLight/blob/main/CandleLight.ino
- ATtiny85 microcontroller (or similar); see comparison chart.
- Arduino IDE with ATTinyCore by Spence Conde.
- You can add it by setting "http://drazzy.com/package_drazzy.com_index.json" in File > Preferences > Additional Board Manager URLs, and then Tools > Board > Boards Manager > ATTinyCore > Install.
- A programmer for the microcontroller. You can use an Arduino Uno, ELEGOO UNO (or similar).
- Set your ATtiny on 1 MHz (burn bootloader before uploading the sketch).