🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Hold digital pin state in sleep mode?

    Cores
    3
    5
    8.4k
    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.
    • M
      m5er
      last edited by

      Can anyone provide a working C++ example how to hold a digital output pin HIGH during ESP32 deep sleep? Thanks!

      m5-docsM ajb2k3A 2 Replies Last reply Reply Quote 0
      • m5-docsM
        m5-docs @m5er
        last edited by

        Hello @m5er "Deep-sleep mode: Only RTC is powered on. Wi-Fi and Bluetooth connection data are stored in RTC
        memory. The ULP-coprocessor can work" I think that it means the clock which drives GPIOs will sleep as well.

        M5Stack documentation URL

        https://docs.m5stack.com

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3 @m5er
          last edited by

          @m5er said in Hold digital pin state in sleep mode?:

          Can anyone provide a working C++ example how to hold a digital output pin HIGH during ESP32 deep sleep? Thanks!

          You need to look into the ULP for that as both cores of the esp are inactive during deep sleep

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • M
            m5er
            last edited by m5er

            Thank you @watson and @ajb2k3. I did look into the documentation before asking this question, but it wasn't very clear to me how to put this into practice. That is why my question asked for a working example. I will still appreciate if someone could post that.

            ajb2k3A 1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3 @m5er
              last edited by

              @m5er That is part of the problem, the ULP is not well documented and everyone is struggling with it

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post