🤖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?

    Scheduled Pinned Locked Moved Cores
    5 Posts 3 Posters 10.3k 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.
    • M Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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

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