add Calibration for 0x5408

This commit is contained in:
prenticedavid
2017-12-15 15:59:33 +00:00
parent 1b1d7a9521
commit a15d94f4fb

View File

@@ -128,7 +128,7 @@ void show_tft(void)
void setup(void)
{
uint16_t tmp;
tft.begin(9600);
Serial.begin(9600);
tft.reset();
identifier = tft.readID();
@@ -137,6 +137,10 @@ void setup(void)
} else if (identifier == 0x0154) {
name = "S6D0154";
TS_LEFT = 914; TS_RT = 181; TS_TOP = 957; TS_BOT = 208;
} else if (identifier == 0x5408) { //thanks gazialankus
name = "SPFD5408";
TS_LEFT = 150; TS_RT = 960; TS_TOP = 155; TS_BOT = 925;
SwapXY = 1;
} else if (identifier == 0x7783) {
name = "ST7781";
TS_LEFT = 865; TS_RT = 155; TS_TOP = 942; TS_BOT = 153;