Official support for low power modes

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Official support for low power modes

Post by pythoncoder » Sat Dec 26, 2015 6:51 am

Currently the only officially supported way to recover from the "deep sleep" mode is rtc.wakeup(). I have a module upower.py documented here https://github.com/peterhinch/micropyth ... opower.git. It uses the stm module to enable waking by means of RTC alarms and pin changes on the two available pins. It provides other functionality relevant to low power operation including access to the backup RAM and RTC registers and a low power version of pyb.delay(). The code is currently a hack, but could be made standards-compliant if there's any interest in an official Python module.

Or is the plan to support this functionality in firmware? I'd be happy to offer a module for review in the New Year if Python/stm is the preferred solution.
Peter Hinch
Index to my micropython libraries.

Post Reply