Fix M5Stack core2 touch and display settings

This commit is contained in:
fvanroie 2021-01-07 01:08:47 +01:00
parent 661c2e1eee
commit 8907479b3c
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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