Software for my bicycle light & USB charger.
Note: To flash connect MISO to GND.
TODO:
- ☑️ MCU initialization
- initial capacitor charge
- when not driven after 15 seconds turn light off?
- when not driven for 15 seconds, min 2 sec driving over 12 km/h to turn light on
- light/charge switch
- ☑️ debug a summary every x cycles
- led dimming
- brake light