XPT2046
XPT2046 copied to clipboard
Examples
Examples work only if you change rows in the original was so
void setup() {
delay(1000);
ucg.begin(UCG_FONT_MODE_TRANSPARENT);
//ucg.begin(UCG_FONT_MODE_SOLID);
touch.begin(ucg.getWidth(), ucg.getHeight()); // Must be done before setting rotation
ucg.setRotate270();
touch.setRotation(touch.ROT270);
ucg.clearScreen();
but works like this
void setup() {
delay(1000);
ucg.begin(UCG_FONT_MODE_TRANSPARENT);
//ucg.begin(UCG_FONT_MODE_SOLID);
ucg.clearScreen(); // ----- move here---------------------------------------//
touch.begin(ucg.getWidth(), ucg.getHeight()); // Must be done before setting rotation
ucg.setRotate270();
touch.setRotation(touch.ROT270);