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

    Core Ink Wake Up button from Deep Sleep

    Cores
    2
    2
    3.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.
    • A
      alexylem
      last edited by

      Can't get my M5 Core Ink to wake up from deep sleep using a button :

      esp_sleep_enable_ext0_wakeup(GPIO_NUM_5, LOW); // EXT buton
      esp_deep_sleep_start();
      

      It goes to deep sleep but does not wake up from button. It does wake up from an RTC timer though.
      I also tried holding power pin without success:

      gpio_hold_en((gpio_num_t) POWER_HOLD_PIN);
      gpio_deep_sleep_hold_en();
      

      Thanks for your help!
      Alex.

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by felmue

        Hello @alexylem

        only so called RTC_GPIOs can wake ESP32 from deep sleep. Unfortunately GPIO_NUM_5 is not one of them.

        Please check out page 15 - Pin description of the ESP32 datasheet.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

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