Add Battery Icon
-
Add BatteryIcon
- setBatteryIcon(boolean);
Execute when you want to show/hide setup() and icons. - setBatteryStatus(M5.Power.isCharging(), M5Power.getBatteryLevel());
The battery status must be set from time to time; be careful to avoid conflicts with I2C communication. For example, if you run it in parallel with M5.update(), the value may be incorrect.
- setBatteryIcon(boolean);
-
fix #84