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

    Detect charging on M5StickC?

    Arduino
    2
    2
    3.9k
    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.
    • S
      sbussinger
      last edited by

      Is there a way in software to detect if the M5StickC is charging or running on battery? I'm assuming the power management unit (AXP192) must know, but is that information exposed somewhere?

      Thanks!

      world101W 1 Reply Last reply Reply Quote 0
      • world101W
        world101 @sbussinger
        last edited by

        @sbussinger

        Yes. With uiFlow:
        0_1598897389116_Screen Shot 2020-08-31 at 2.01.03 PM.png

        Or Arduino:
        https://docs.m5stack.com/#/en/api/axp192_m5stickc
        https://github.com/m5stack/M5StickC/blob/master/examples/Basics/AXP192/AXP192.ino

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