XPT2046 icon indicating copy to clipboard operation
XPT2046 copied to clipboard

Examples

Open CodeNameHawk opened this issue 7 years ago • 0 comments

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);

CodeNameHawk avatar Feb 06 '18 19:02 CodeNameHawk