Is your feature request related to a problem? Please describe.
User story: I need to make a sensing device that lasts a long time on batteries. Thus the device needs to power off under program control, and power up on an event, take a measurement, then go to sleep again.
Describe the solution you'd like
CODAL offers a power management API https://github.com/lancaster-university/microbit-v2-samples/blob/master/source/samples/PowerManagementTest.cpp and there is a published spec https://github.com/microbit-foundation/spec-power-management. It would be useful to surface this in MicroPython
Describe alternatives you've considered
None
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
User story: I need to make a sensing device that lasts a long time on batteries. Thus the device needs to power off under program control, and power up on an event, take a measurement, then go to sleep again.
Describe the solution you'd like
CODAL offers a power management API https://github.com/lancaster-university/microbit-v2-samples/blob/master/source/samples/PowerManagementTest.cpp and there is a published spec https://github.com/microbit-foundation/spec-power-management. It would be useful to surface this in MicroPython
Describe alternatives you've considered
None
Additional context
Add any other context or screenshots about the feature request here.