-
Notifications
You must be signed in to change notification settings - Fork 54
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
Badger2040w RTC example #4
Comments
I think it’s possible but quite tricky to redirect machine.RTC, since we’d have to patch the relevant files in the port (MicroPython source) itself. I found the dual RTC stuff a bit weird on Inky Frame so maybe it’s worth looking into how tricky. I should be able to port the stuff I’ve recently written for Inky Frame to Badger. That should cover off most basic RTC use cases, since it gives you a function to wake up after a number of minutes. |
Okay, some basic RTC functions and docs added here - #2 If you get the build from GitHub Actions you should be able to give these a try. |
Hi @North101 and @Gadgetoid , How would this example https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/examples/pcf85063a/pico_rtc.py work with halting the Badger 2040 W? I'd like to take a temperature reading every 5 minutes, and shut the Pico off for those periods. As an alternative, I've tried |
In fact,
also forgets the rtc setting. If I start the |
1 similar comment
In fact,
also forgets the rtc setting. If I start the |
This explains the behaviour. |
Might be useful to the document the badger2040w RTC and link to the example
https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/examples/pcf85063a/pico_rtc.py
Would it be worth having the micropython
machine.RTC
call thepcf85063a
functions?https://docs.micropython.org/en/latest/library/machine.RTC.html
The text was updated successfully, but these errors were encountered: