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

Update power.deep_sleep to sleep until the next run_every #118

Closed
microbit-carlos opened this issue Sep 5, 2022 · 2 comments
Closed

Update power.deep_sleep to sleep until the next run_every #118

microbit-carlos opened this issue Sep 5, 2022 · 2 comments
Milestone

Comments

@microbit-carlos
Copy link
Contributor

As discussed elsewhere, my suggestion is that run_every=True does not end the deep_sleep() call, but rather wakes briefly to execute the run every and then resumes the deep sleep. The deep sleep only ends when the given timeout expires, or a wake_on event occurs. In particular, power.deep_sleep(run_every=True) will never return. (And maybe we can then make run_every=True the default.)

Originally posted by @dpgeorge in bbcmicrobit/micropython#754 (comment)

@microbit-carlos microbit-carlos added this to the 2.1.0 milestone Sep 5, 2022
@microbit-carlos microbit-carlos changed the title Update power.deep_sleep to sleep until the next run_every and then go back to sleep Update power.deep_sleep to sleep until the next run_every Sep 6, 2022
@microbit-carlos
Copy link
Contributor Author

microbit-carlos commented Sep 12, 2022

@dpgeorge
Copy link
Collaborator

Implemented by cd8bbb8

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