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

    100% battery is useless if your device isn't on

    M5 Stick/StickC
    1
    1
    3
    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
      michael.koppelman
      last edited by

      I really love the M5 Stack. But then you run across things really hard to understand. Like, I dunno, this:

      You must set GPIO4 high within 100ms of the device powering on.
      If your code has delays before setting the pin, the device will
      shut down.
      

      So if you are powering down with 100% battery, it's BY DESIGN.

      Your first two lines in setup() must be:

      pinMode(4, OUTPUT);
      digitalWrite(4, HIGH);
      

      They are going to protect that battery even if they have to halt your code.

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