Hi there,
I've got a 2.8" touchscreen. Before using the MCUFRIEND_kbv library, I couldn't get it to work at all, but since using it, I have been very pleased to get it to start to work.
However, the touchscreen is apparently 'mirrored' down the middle, so that with the display in a portrait position, when I move the stylus up the middle (when using Adafruit tftpaint sketch but with MCUFRIEND_kbv library as opposed to the Adafruit_TFTLCD library), it draws a line downwards.
I have tried to resolve this in 2 ways:
-In the sketch I have tried to change the pin configuration:
The default is:
#define YP A3
#define XM A2
#define YM 9
#define XP 8
producing the result as described above.
Modifying it:
#define YP A2
#define XM A3
#define YM 8
#define XP 9
moving the stylus horizontally across the display, produces a vertical line and vice versa!
Defining pins A1, A2, 6 and 7 means that the touchscreen does not work at all, as I have seen this does work for other users.
I have also tried the default...
pinMode(XM, OUTPUT);
pinMode(YP, OUTPUT);
...changing to:
pinMode(XP, OUTPUT);
pinMode(YM, OUTPUT);
but that doesn't work either.
When I run the tftpaint sketch, the serial monitor says that I am using the ILI9341 driver, but the hardware documentation I have for the touchscreen says that it uses a UC8230s driver, so I am really rather bamboozled!
Sorry its such a long post; I'd be interested to know if anybody else has had any similar issues and have managed to get it working 
All the best,
LiFu99