ESP32-DIV icon indicating copy to clipboard operation
ESP32-DIV copied to clipboard

2.8 inch TFT LCD Touch Display Shield Module 320x240 SPI Serial ILI9341

Open RoToSpLaSh opened this issue 1 year ago • 2 comments

I found the 2.8 inch 320×240 screen mapping, made some changes to the code. I'll share them tomorrow.

RoToSpLaSh avatar May 18 '25 23:05 RoToSpLaSh

#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)

RoToSpLaSh avatar Jun 07 '25 22:06 RoToSpLaSh

do u have instagram ?? i have problem with 2.8 tft dsiplay

zabiulig avatar Oct 15 '25 20:10 zabiulig