Add 'Back' Button for Touch TFT 320x240 (#15060)

This commit is contained in:
Robby Candra
2019-08-29 13:19:07 +07:00
committed by Scott Lahteine
parent 8196ced2de
commit 38983fdfa9
229 changed files with 1486 additions and 225 deletions

View File

@ -80,9 +80,10 @@ uint8_t XPT2046::read_buttons() {
if (y < 175 || y > 234) return 0;
return WITHIN(x, 11, 109) ? EN_A
: WITHIN(x, 111, 209) ? EN_B
: WITHIN(x, 211, 309) ? EN_C
return WITHIN(x, 14, 77) ? EN_D
: WITHIN(x, 90, 153) ? EN_A
: WITHIN(x, 166, 229) ? EN_B
: WITHIN(x, 242, 305) ? EN_C
: 0;
}