TFT SPI MIRROR
Posted: Thu Nov 03, 2016 3:43 am
MMISCOOL, includes in the next version a MIRROR option to TFT TOUCH
tft.setup(16, 4, 3,MIRROR)
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;
}
tft.setup(16, 4, 3,MIRROR)
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;
}