mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-23 07:29:14 -08:00
Hahaha double silly
This commit is contained in:
@@ -110,6 +110,7 @@ bool Display::isTouchHeld(uint16_t threshold) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Display::setCalData(bool landscape) {
|
void Display::setCalData(bool landscape) {
|
||||||
|
#ifndef HAS_CYD_TOUCH
|
||||||
if (!landscape) {
|
if (!landscape) {
|
||||||
#ifdef TFT_SHIELD
|
#ifdef TFT_SHIELD
|
||||||
uint16_t calData[5] = { 275, 3494, 361, 3528, 4 }; // tft.setRotation(0); // Portrait with TFT Shield
|
uint16_t calData[5] = { 275, 3494, 361, 3528, 4 }; // tft.setRotation(0); // Portrait with TFT Shield
|
||||||
@@ -138,6 +139,7 @@ void Display::setCalData(bool landscape) {
|
|||||||
tft.setTouch(calData);
|
tft.setTouch(calData);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to prepare the display and the menus
|
// Function to prepare the display and the menus
|
||||||
|
|||||||
Reference in New Issue
Block a user