Touch is reading!
I need only your patch to touch orientation! (firmware)
Thanks!!!!!!!
lpservices wrote:Hello,
you can disconnect the MISO output from the TFT controller without any problems
espbasic does not require this line to be connected, this line is only used to read from the display,
and espbasic never read from the display, just writes to it.
Try to disconnect this line, and you will see the display functions normally
Below is the code I changed to match the touch orientation tot that of the display
I will try to compile a version with these altered function this evening
this is the codeblock in ReadTouchXY I replaced for the reversed X axis on my display:
my altered code:
switch (tft->getRotation())
{
case 0:
xf = 240 -x;
yf = y;
break;
case 1:
xf = y;
yf = x;
break;
case 2:
xf = x;
yf = 320-y;
break;
case 3:
xf = 320 -y;
yf = 240 - x;
break;
}
The original code :
switch (tft->getRotation())
{
case 0:
xf = 240 - x;
yf = 320 - y;
break;
case 1:
xf = 320 - y;
yf = x;
break;
case 2:
xf = x;
yf = y;
break;
case 3:
xf = y;
yf = 240 - x;
break;
}