mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix M5Stack core2 touch and display settings
This commit is contained in:
parent
661c2e1eee
commit
8907479b3c
@ -16,7 +16,7 @@ bool IRAM_ATTR FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug)
|
||||
if(touchpanel->read_touch_number() != 1) return false;
|
||||
|
||||
*touchX = TFT_WIDTH - touchpanel->read_touch1_y();
|
||||
*touchY = touchpanel->read_touch1_y();
|
||||
*touchY = touchpanel->read_touch1_x();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ m5stack =
|
||||
-D TFT_WIDTH=240
|
||||
-D TFT_HEIGHT=320
|
||||
-D TFT_ROTATION=0 ; see TFT_ROTATION values
|
||||
-D SPI_FREQUENCY=80000000
|
||||
-D SPI_FREQUENCY=60000000 ; can't handle 80 Mhz
|
||||
-D SPI_READ_FREQUENCY=16000000
|
||||
-D USER_SETUP_LOADED=1
|
||||
-D SUPPORT_TRANSACTIONS
|
||||
|
Loading…
x
Reference in New Issue
Block a user