Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    object has no attribute 'pin_deepsleep_wakeup

    Scheduled Pinned Locked Moved FiPy
    fipypytrackdeepsleepwakeup
    2 Posts 1 Posters 414 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      SevenW
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • S Offline
        SevenW
        last edited by

        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()

        1 Reply Last reply Reply Quote 1

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom