We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94eeb9d commit fc072e7Copy full SHA for fc072e7
boards/XPT2046_ScreenPoint.h
@@ -187,13 +187,13 @@ class XPT2046_ScreenPoint : public PARENT_CLASS {
187
}
188
189
bool touched(void) {
190
- SCREEN_POINT p = getPoint(); // PARENT_CLASS::getTouch();
+ auto p = getPoint(); // PARENT_CLASS::getTouch();
191
return (SP_RAW_Z(p) >= Z_THRESHOLD);
192
193
#endif // XPT2046_Bitbang_h
194
195
bool getTouch(uint16_t *x, uint16_t *y, uint16_t threshold = Z_THRESHOLD) {
196
- SCREEN_POINT gp = getPoint();
+ auto gp = getPoint();
197
if (SP_RAW_Z(gp) >= threshold) {
198
if (calibrated) {
199
int16_t xCoord = round((SP_RAW_X(gp) * xCalM) + xCalC);
0 commit comments