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

Waking from Sleep at a specific time of the day #56

Open
tibaultbordeaux opened this issue Oct 10, 2023 · 1 comment
Open

Waking from Sleep at a specific time of the day #56

tibaultbordeaux opened this issue Oct 10, 2023 · 1 comment

Comments

@tibaultbordeaux
Copy link

Hello all,

I'm able to wake up my badger after a certain amount of time:

badger2040.sleep_for(minutes)

But how would I wake up at a certain time, i.e. 8:00 a.m. every day?

Thanks for help!

@exussum12
Copy link

rtc.set_alarm(0, aminute, ahour, aday)

That is how the RTC works internally but its not exposed here.

You can work out the minutes in a similar way to that method or set up the RTC directly in your code (this will be harder but follow what the code above does)

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