mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
add Calibration for 0x5408
This commit is contained in:
@@ -128,7 +128,7 @@ void show_tft(void)
|
|||||||
void setup(void)
|
void setup(void)
|
||||||
{
|
{
|
||||||
uint16_t tmp;
|
uint16_t tmp;
|
||||||
tft.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
||||||
tft.reset();
|
tft.reset();
|
||||||
identifier = tft.readID();
|
identifier = tft.readID();
|
||||||
@@ -137,6 +137,10 @@ void setup(void)
|
|||||||
} else if (identifier == 0x0154) {
|
} else if (identifier == 0x0154) {
|
||||||
name = "S6D0154";
|
name = "S6D0154";
|
||||||
TS_LEFT = 914; TS_RT = 181; TS_TOP = 957; TS_BOT = 208;
|
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) {
|
} else if (identifier == 0x7783) {
|
||||||
name = "ST7781";
|
name = "ST7781";
|
||||||
TS_LEFT = 865; TS_RT = 155; TS_TOP = 942; TS_BOT = 153;
|
TS_LEFT = 865; TS_RT = 155; TS_TOP = 942; TS_BOT = 153;
|
||||||
|
|||||||
Reference in New Issue
Block a user