I have an M5 Paper v1.1 with ESP32 and it works very nice. I program it in C++ using the Arduino IDE. How can I detect detect whether the device is charging and how can I measure how far the battery is charged? I cannot find that in the documentation.