ESP32-DIV
ESP32-DIV copied to clipboard
2.8 inch TFT LCD Touch Display Shield Module 320x240 SPI Serial ILI9341
I found the 2.8 inch 320×240 screen mapping, made some changes to the code. I'll share them tomorrow.
#define TS_MINX 3800 #define TS_MAXX 239 #define TS_MINY 319 #define TS_MAXY 3800
instead of
#define TS_MINX 300 #define TS_MAXX 3800 #define TS_MINY 300 #define TS_MAXY 3800
in Touchscreen.h
int x = ::map(p.x, 3800, 239, 0, SCREEN_WIDTH - 1); int y = ::map(p.y, 3800, 319, 0, SCREENHEIGHT - 1);
in all parts where the touchscreen mapping is called (bluetooth.cpp, subghz.cpp, wifi.cpp, etcc)
do u have instagram ?? i have problem with 2.8 tft dsiplay