circuitpython
circuitpython copied to clipboard
use alarms instead of busy-loop in launcher
Hi,
currently the launcher uses a busy-loop in it's main-loop. This really eats up battery.
Why not use alarms? Set up an alarm for each button and then send the device to light sleep. Deep sleep should also be possible, but is a little bit more involved. I have this on my own todo-list but currently I am busy with other stuff, so I just wanted to point that out.
See the docs about alarms (import alarm)
hi , yes i planed to use it, for now i have some issue with circuitpython board.1V2_REF & board.3V3_EN don't work and it have to be used to work on battery , on my badger with battery badger don't start (apparently need to put pin 3V3_EN to high. it's in the todo list ,