Skip to content

Commit b3f175e

Browse files
committed
fix rotation coord
1 parent f58da80 commit b3f175e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TAMC_GT911.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ TP_Point TAMC_GT911::readPoint(uint8_t *data) {
9999
break;
100100
case ROTATION_LEFT:
101101
temp = x;
102-
x = height - y;
102+
x = width - y;
103103
y = temp;
104104
break;
105105
case ROTATION_INVERTED:
@@ -109,7 +109,7 @@ TP_Point TAMC_GT911::readPoint(uint8_t *data) {
109109
case ROTATION_RIGHT:
110110
temp = x;
111111
x = y;
112-
y = width - temp;
112+
y = height - temp;
113113
break;
114114
default:
115115
break;

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=TAMC_GT911
2-
version=1.0.1
2+
version=1.0.2
33
author=TAMC
44
maintainer=TAMC <[email protected]>
55
sentence=Arduino library for GT911

0 commit comments

Comments
 (0)