x12s: move touch panel inversion to LVGL driver

This commit is contained in:
Raphael Coeffic
2022-06-25 16:09:04 +02:00
committed by Raphael Coeffic
parent f1f8249205
commit 1f8072374c
3 changed files with 9 additions and 5 deletions
+4
View File
@@ -720,7 +720,11 @@
#define TOUCH_INT_EXTI_SysCfgLine LL_SYSCFG_EXTI_LINE2
#define TOUCH_INT_EXTI_IRQn EXTI2_IRQn
#define TOUCH_INT_EXTI_IRQHandler EXTI2_IRQHandler
#if defined(PCBX12S)
#define TOUCH_PANEL_INVERTED
#endif
#endif // HARDWARE_TOUCH
// First I2C Bus
#if defined(RADIO_T18)
-5
View File
@@ -746,11 +746,6 @@ struct TouchState touchPanelRead()
return internalTouchState;
}
#if defined (PCBX12S)
touchData.points[0].x = LCD_W - touchData.points[0].x;
touchData.points[0].y = LCD_H - touchData.points[0].y;
#endif
if (internalTouchState.event == TE_NONE ||
internalTouchState.event == TE_UP ||
internalTouchState.event == TE_SLIDE_END) {