Hardware and software design for a ATTiny85 based LED candle effect. Based on this post, information found on Ohmify and this avrlibc example
Make sure you have a hardware setup to flash an ATtiny85. This repo uses PlatformIO for tooling, you might be able to change the target env config to match. Then run
$ platformio run -t upload -vvv
UART communication to the BLE module is done with the picoUART library on PB3 and baud rate 9600 (default HM-10).
- Simple ATtiny USI UART
- Simple Serial Communications With AVR libc
- Four PWM Outputs from the ATtiny85
- AVR Timer Programming
- USI Serial UART Receive on ATtiny
- AVR half-duplex software UART supporting single pin operation
- Check howto do basic HM-10 controlled LED.
- Check ISP wiring, does it need protective/isolating R's?
- Control Hub based on Nerves for multiple lamps/single control point.