Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use alarms instead of busy-loop in launcher #6

Open
bablokb opened this issue Mar 18, 2022 · 1 comment
Open

use alarms instead of busy-loop in launcher #6

bablokb opened this issue Mar 18, 2022 · 1 comment

Comments

@bablokb
Copy link

bablokb commented Mar 18, 2022

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)

@beboxos
Copy link
Owner

beboxos commented Mar 20, 2022

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 ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants