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

    Detect when power is removed from M5Stack Gray

    Arduino
    2
    2
    4.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.
    • G
      GregFordyce
      last edited by

      Does M5.Power.isCharging() return true even if the battery is fully charged but power is still connected through USB port?

      I need to save some values and shut down the M5Stack when power is removed from the USB port under both battery charging and battery fully charged conditions.

      Thanks in advance, Greg

      m5stackM 1 Reply Last reply Reply Quote 0
      • m5stackM
        m5stack @GregFordyce
        last edited by

        if the battery already fully. the M5.Power.isCharging() function will return the ture.

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