Replies: 1 comment
-
|
The lightsleep and deepsleep methods do not use the |
Beta Was this translation helpful? Give feedback.
-
|
The lightsleep and deepsleep methods do not use the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently dipping my feet into MicroPython, specifically the SAMD port. As part of this, I am trying to port an Arduino project I wrote some time ago. One feature of this Arduino project for the SAMD21 (Arduino Zero compatible) is the use of the
Arduino Low Powerlibrary to enter a sleep state, and to wake up from said sleep state when a particular pin is asserted (an IRQ pin from an accelerometer). I have browsed the MicroPython documentation and I see the methods to enter light sleep and deep sleep, but I do not see a way to make amachine.Pinwake up the board on an incoming signal.The MicroPython documentation references a
wakeparameter of thePin.irq()method, to be used with the constantsmachine.IDLE,machine.SLEEPormachine.DEEPSLEEP. However, these constants are not available in themachinemodule for the SAMD21. Also, from a cursory examination of the source code, the SAMD port does not appear to implement thewakeparameter either.Is wake-on-pin available in the first place in the SAMD21 port?
The firmware file I downloaded is:
SAMD_GENERIC_D21X18-20260406-v1.28.0.Beta Was this translation helpful? Give feedback.
All reactions