object has no attribute 'pin_deepsleep_wakeup
-
I am trying to debug an intermittent "fail to wake from deepsleep" problem with my fipy+pytrack. Besides the timer I want to use the pytrack button to wake the fipy. The simple program to demo:
import machine print("debug wake") print(machine.wake_reason()) machine.pin_deepsleep_wakeup(pins = ('P14',), mode = machine.WAKEUP_ALL_LOW, enable_pull = True)>>> debug wake (0, None) Traceback (most recent call last): File "<stdin>", line 5, in <module> AttributeError: 'module' object has no attribute 'pin_deepsleep_wakeup' > Pycom MicroPython 1.20.0.rc4 [v1.9.4-1444e48] on 2019-01-07; FiPy with ESP32 Type "help()" for more information. >>>The code understands the first call to module machine, but not the second. Please help.
Note that I am using a development version of Pycom, and no PyBytes. If I understand docs well, the pin_deepsleep_wakeup method is supported for the Fipy.
-
Found a start of an answer here: https://forum.pycom.io/topic/3624/machine-pin_deepsleep_wakeup-function-is-not-working-in-lopy4-firmware-version-1-19-0-b2
Link to developemtn documentation on github: https://github.com/pycom/pycom-documentation/tree/development_release/firmwareapi/pycom/machine
The method is renamed to pin_sleep_wakeup()
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login