Detect charging on M5StickC?
-
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!
-
Yes. With uiFlow:
Or Arduino:
https://docs.m5stack.com/#/en/api/axp192_m5stickc
https://github.com/m5stack/M5StickC/blob/master/examples/Basics/AXP192/AXP192.ino