mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
sleep/wakeup touch command
This commit is contained in:
@@ -99,6 +99,7 @@ template <class LGFX> void LGFXDriver<LGFX>::task_handler(void)
|
||||
DisplayDriver::view->screenSaving(true);
|
||||
if (hasTouch() && hasButton()) {
|
||||
ILOG_DEBUG("disable touch, enable button input");
|
||||
lgfx->touch()->sleep();
|
||||
lv_indev_enable(DisplayDriver::touch, false);
|
||||
lv_indev_enable(InputDriver::instance()->getButton(), true);
|
||||
}
|
||||
@@ -133,6 +134,7 @@ template <class LGFX> void LGFXDriver<LGFX>::task_handler(void)
|
||||
DisplayDriver::view->screenSaving(false);
|
||||
if (hasTouch() && hasButton()) {
|
||||
ILOG_DEBUG("enable touch, disable button input");
|
||||
lgfx->touch()->wakeup();
|
||||
lv_indev_enable(DisplayDriver::touch, true);
|
||||
lv_indev_enable(InputDriver::instance()->getButton(), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user