Hey all,
I have a 3.95" TFT LCD (320 X 480) connected to an UNO board that has an issue with the Touch Screen component. I ran the Mcufriend_kbv program Touch_shield_kbv and found that the driver is an ILI9488 although I am using ILI9341 and it's been working alright. On that note, do you know how to use ILI9488 because I've tried using it as the identifier (0x9488) in the Adafruit TFTLCD library paint example and it does not work, only 0x9341 does.
Back to the Touch Screen issue, when I run the paint example mentioned above, only a line of dots show up along the y-axis wherever I touch the screen. I think it has something to do with my x and y, min and max values. This is what I've been working with for the paint example:
#define YP A1
#define XM A2
#define YM 7
#define XP 6
#define TS_MINX 150
#define TS_MINY 120
#define TS_MAXX 920
#define TS_MAXY 940
p.x = map(p.x, TS_MINX, TS_MAXX, 0,tft.width());
p.y = map(p.y, TS_MINY, TS_MAXY, 0,tft.height());
Attached is a pic of the paint example revealing what shows up when you start touching the screen anywhere.
PaintExample.pdf (17.4 KB)