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

Badger 2040W: Not waking from halt with button press #69

Open
tti0 opened this issue Jan 3, 2024 · 0 comments
Open

Badger 2040W: Not waking from halt with button press #69

tti0 opened this issue Jan 3, 2024 · 0 comments

Comments

@tti0
Copy link
Contributor

tti0 commented Jan 3, 2024

Hi!

I am experiencing an issue whereby on the Badger 2040 W, when the halt() method is called, the device does not restart main.py upon a subsequent front button press, as expected in the documentation.

To demonstrate, I have the following program as main.py, with firmware v. 0.0.4:

import badger2040
import time

badger = badger2040.Badger2040()
badger.led(255)
time.sleep(1)
badger.led(0)
badger.halt()

When USB is connected, the LED blinks, as expected. Pressing any of the buttons on the front of the device does not cause the LED to blink again, so I suspect that main.py is not being started on wake up. However, when connected to Thonny, pressing any of the front buttons causes a new REPL prompt to appear (>>>), so the Badger does seem to wake up.

I'd be grateful for any help with this, please.

Thank you!

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

1 participant