M5Stick-C Battery Status?
-
Hi, I recently acquired one M5Stick-C device for a personal project.
I didn't manage to find any solution to know what is the battery percentage of the device. And I wanted to know if the battery is fully charged and what is the approximate real-time status of the battery.Anyone can help?
ty
-
Hi @JoaoB
not exactly what you are looking for but it will give you at least voltage and current of the battery:
https://github.com/m5stack/M5StickC/blob/master/examples/Basics/AXP192/AXP192.ino
Cheers
Felix -
I made custom block for UiFlow, there is also code in python. You shouldn't have problem with convert it to C language.
https://github.com/stonatm/UiFlow-custom-blocks/tree/master/battery-capacity