Implemented power management (#67)

- Implemented HAL for for power management
- Implemented the Power app (accessible via Settings app)
- Implemented status bar icon for battery status
This commit is contained in:
Ken Van Hoeylandt
2024-11-02 23:40:26 +01:00
committed by GitHub
parent 6520655795
commit 632d7ccccf
29 changed files with 373 additions and 26 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ extern "C" {
#endif
static void read_touch(TT_UNUSED lv_indev_t* indev, lv_indev_data_t* data) {
static lgfx::touch_point_t point;
lgfx::touch_point_t point; // Making it static makes it unreliable
bool touched = M5.Lcd.getTouch(&point) > 0;
if (touched) {
data->point.x = point.x;