feat(GT911): Add CLI command to reset touch panel cfg (#2351)

* GT911: add CLI command to reset config

Related to #2063

* X12S: touch coordinate inversion in GT911 config

Note: config reset with CLI "reset_gt911" required.

* Remove touch sensor software inversion
This commit is contained in:
Raphael Coeffic
2022-09-25 20:27:22 +10:00
committed by GitHub
parent 3969b2b7e3
commit 78e99311c8
4 changed files with 63 additions and 15 deletions
-5
View File
@@ -187,11 +187,6 @@ extern "C" void touchDriverRead(lv_indev_drv_t *drv, lv_indev_data_t *data)
TouchState st = touchPanelRead();
#if defined(TOUCH_PANEL_INVERTED) && !defined(SIMU)
st.x = LCD_W - st.x;
st.y = LCD_H - st.y;
#endif
// no touch input if backlight is disabled
if (!isBacklightEnabled()) {
reset_inactivity();