modify GT911 driver to allow smoother touch

This commit is contained in:
arovak 2021-03-17 12:25:52 +01:00
parent e4ea6e69ce
commit bc5f93dd91

View File

@ -19,11 +19,11 @@ void GT911_setXY(int8_t contacts, GTPoint * points)
GT911_num_touches = contacts; GT911_num_touches = contacts;
GT911_points = points; GT911_points = points;
LOG_VERBOSE(TAG_GUI, F("Contacts: %d"), contacts); // LOG_VERBOSE(TAG_GUI, F("Contacts: %d"), contacts);
for(int i = 0; i < contacts; i++) { // for(int i = 0; i < contacts; i++) {
LOG_VERBOSE(TAG_GUI, F("C%d: #%d %d,%d s:%d"), i, points[i].trackId, points[i].x, points[i].y, points[i].area); // LOG_VERBOSE(TAG_GUI, F("C%d: #%d %d,%d s:%d"), i, points[i].trackId, points[i].x, points[i].y, points[i].area);
yield(); // yield();
} // }
} }
// Read touch points from global variable // Read touch points from global variable