pe0mgb / SI4735-Radio-ESP32-Touchscreen-Arduino

SI4735 Radio
134 stars 36 forks source link

Using 2.4" TFT touch with ILI9341 - SETUP calibration of horizontal position #28

Open z34pec opened 1 month ago

z34pec commented 1 month ago

Well I had a couple of days issue with implementing 2.4" 240x320 touch screen instead of 2.8" . I was told that nothing needs to be changed and that it could work good. Unfortunately there is displacement of touch points on the screen on 2.4" so as a final result you will face problem with selecting given menus with a touch. Coordinates of menus on screen and touch points just do not match. So there is a need to use calibration sketch so you could have proper settings for your display. This is a situation for horizontal screen, vertical and 180 degrees rotated I do not know how to get proper calibration. So, if PE0MGB is willing to add this sketch to it's setup and do some doc update ?

In order to proper calibrate, of tft display are:

define TFT_MISO 19

define TFT_MOSI 23

define TFT_SCLK 18

define TFT_CS 15 // Chip select control pin

define TFT_DC 2 // Data Command control pin

define TFT_RST 4

define TOUCH_CLK 18 //

define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen

define TOUCH_DIN 23 //

define TOUCH_DO 19 ///

Touch_Controller_Demo_ILI9341_Touch_screen.zip