Xinyuan-LilyGO / T_Watch_Game

GAME1.Tic Tac Toe
MIT License
1 stars 1 forks source link

Can't Compile using latest TTGO_TWatch_Library #1

Open haverdude opened 3 years ago

haverdude commented 3 years ago

Using latest from https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library

C:\Users\xxxx\Documents\Arduino\tic2\tic2.ino: In function 'void setup()':
tic2:10:9: error: 'class TTGOClass' has no member named 'openBL'
   ttgo->openBL();
         ^
tic2:11:9: error: 'class TTGOClass' has no member named 'lvgl_begin'
   ttgo->lvgl_begin();
         ^
tic2:12:9: error: 'class TTGOClass' has no member named 'button'
   ttgo->button->setReleasedHandler(released);
         ^
tic2:14:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillScreen(TFT_WHITE);
         ^
tic2:14:26: error: 'TFT_WHITE' was not declared in this scope
   ttgo->eTFT->fillScreen(TFT_WHITE);
                          ^
tic2:16:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->setSwapBytes(true);
         ^
tic2:19:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->pushImage(0, 0, 240, 240, game1);
           ^
tic2:21:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->pushImage(0, 0, 240, 240, game2);
           ^
tic2:23:18: error: 'class TTGOClass' has no member named 'touch'
   } while (ttgo->touch->touched() == 0);
                  ^
tic2:25:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, gm);
         ^
tic2:28:5: error: 'TP_Point' was not declared in this scope
     TP_Point p =  ttgo->touch->getPoint();
     ^
tic2:31:11: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
           ^
tic2:31:24: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                        ^
tic2:31:37: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                                     ^
tic2:31:50: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                                                  ^
tic2:32:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 0, 240, 240, gm1);
             ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void loop()':
tic2:43:9: error: 'class TTGOClass' has no member named 'button'
   ttgo->button->loop();
         ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void cinit()':
tic2:47:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillScreen(TFT_WHITE);
         ^
tic2:47:26: error: 'TFT_WHITE' was not declared in this scope
   ttgo->eTFT->fillScreen(TFT_WHITE);
                          ^
tic2:49:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillRect(78, 0, 3, 239, TFT_BLACK);
         ^
tic2:49:39: error: 'TFT_BLACK' was not declared in this scope
   ttgo->eTFT->fillRect(78, 0, 3, 239, TFT_BLACK);
                                       ^
tic2:51:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillRect(159, 0, 3, 239, TFT_BLACK);
         ^
tic2:53:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillRect(0, 78, 239, 3, TFT_BLACK);
         ^
tic2:55:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->fillRect(0, 159, 239, 3, TFT_BLACK);
         ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void chess_start()':
tic2:61:15: error: 'class TTGOClass' has no member named 'touch'
     if (ttgo->touch->touched()) {
               ^
tic2:62:7: error: 'TP_Point' was not declared in this scope
       TP_Point p =  ttgo->touch->getPoint();
       ^
tic2:64:24: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
       Serial.println(p.x);
                        ^
tic2:66:24: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
       Serial.println(p.y);
                        ^
tic2:68:17: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
       istouch(p.x, p.y);
                 ^
tic2:68:22: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
       istouch(p.x, p.y);
                      ^
tic2:90:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 0, 240, 240, draw);
             ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void is_win()':
tic2:165:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 39, 240, 3, TFT_BLACK);
           ^
tic2:165:41: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 39, 240, 3, TFT_BLACK);
                                         ^
tic2:171:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 120, 240, 3, TFT_BLACK);
           ^
tic2:171:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 120, 240, 3, TFT_BLACK);
                                          ^
tic2:176:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 201, 240, 3, TFT_BLACK);
           ^
tic2:176:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 201, 240, 3, TFT_BLACK);
                                          ^
tic2:181:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(39, 0, 3, 240, TFT_BLACK);
           ^
tic2:181:41: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(39, 0, 3, 240, TFT_BLACK);
                                         ^
tic2:186:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(120, 0, 3, 240, TFT_BLACK);
           ^
tic2:186:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(120, 0, 3, 240, TFT_BLACK);
                                          ^
tic2:191:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(201, 0, 3, 240, TFT_BLACK);
           ^
tic2:191:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(201, 0, 3, 240, TFT_BLACK);
                                          ^
tic2:204:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 39, 240, 3, TFT_BLACK);
           ^
tic2:204:41: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 39, 240, 3, TFT_BLACK);
                                         ^
tic2:209:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 120, 240, 3, TFT_BLACK);
           ^
tic2:209:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 120, 240, 3, TFT_BLACK);
                                          ^
tic2:214:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(0, 201, 240, 3, TFT_BLACK);
           ^
tic2:214:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(0, 201, 240, 3, TFT_BLACK);
                                          ^
tic2:219:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(39, 0, 3, 240, TFT_BLACK);
           ^
tic2:219:41: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(39, 0, 3, 240, TFT_BLACK);
                                         ^
tic2:224:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(120, 0, 3, 240, TFT_BLACK);
           ^
tic2:224:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(120, 0, 3, 240, TFT_BLACK);
                                          ^
tic2:229:11: error: 'class TTGOClass' has no member named 'eTFT'
     ttgo->eTFT->fillRect(201, 0, 3, 240, TFT_BLACK);
           ^
tic2:229:42: error: 'TFT_BLACK' was not declared in this scope
     ttgo->eTFT->fillRect(201, 0, 3, 240, TFT_BLACK);
                                          ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void flash()':
tic2:245:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o2);
         ^
tic2:247:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o3);
         ^
tic2:249:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o4);
         ^
tic2:251:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o5);
         ^
tic2:253:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o6);
         ^
tic2:255:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o7);
         ^
tic2:257:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, o8);
         ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void flash2()':
tic2:262:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x2);
         ^
tic2:264:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x3);
         ^
tic2:266:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x4);
         ^
tic2:268:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x5);
         ^
tic2:270:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x6);
         ^
tic2:272:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x7);
         ^
tic2:274:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, x8);
         ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void released()':
tic2:298:9: error: 'class TTGOClass' has no member named 'eTFT'
   ttgo->eTFT->pushImage(0, 0, 240, 240, gm);
         ^
tic2:300:5: error: 'TP_Point' was not declared in this scope
     TP_Point p =  ttgo->touch->getPoint();
     ^
tic2:303:11: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
           ^
tic2:303:24: error: request for member 'x' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                        ^
tic2:303:37: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                                     ^
tic2:303:50: error: request for member 'y' in 'p', which is of non-class type 'int [9]'
     if (p.x > 55  && p.x < 186 && p.y < 151 && p.y > 90) {
                                                  ^
tic2:304:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 0, 240, 240, gm1);
             ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void rec(int)':
tic2:316:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 0, 78, 78, o);
             ^
tic2:321:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 0, 78, 78, o);
             ^
tic2:326:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 0, 78, 78, o);
             ^
tic2:331:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 81, 78, 78, o);
             ^
tic2:336:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 81, 78, 78, o);
             ^
tic2:342:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 81, 78, 78, o);
             ^
tic2:347:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 162, 78, 78, o);
             ^
tic2:352:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 162, 78, 78, o);
             ^
tic2:357:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 162, 78, 78, o);
             ^
C:\Users\xxxxx\Documents\Arduino\tic2\tic2.ino: In function 'void circle(int)':
tic2:368:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 0, 78, 78, x);
             ^
tic2:374:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 0, 78, 78, x);
             ^
tic2:379:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 0, 78, 78, x);
             ^
tic2:384:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 81, 78, 78, x);
             ^
tic2:389:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 81, 78, 78, x);
             ^
tic2:394:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 81, 78, 78, x);
             ^
tic2:399:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(0, 162, 78, 78, x);
             ^
tic2:404:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(81, 162, 78, 78, x);
             ^
tic2:409:13: error: 'class TTGOClass' has no member named 'eTFT'
       ttgo->eTFT->pushImage(162, 162, 78, 78, x);
             ^
exit status 1
'class TTGOClass' has no member named 'openBL'
jor3l commented 3 years ago

Having same error, any updates on this?