Error when compiling "PDQgraphicstest" for ESP32_8048S043
eagl1 opened this issue · comments
Hi,
I have ESP32_8048S043 board and when I compile the example PDQgraphicstest
I get this error:
Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"
Invalid library found in E:\Programs_Files\Arduino\libraries\esp32_capacitive_display: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\esp32_capacitive_display
Invalid library found in E:\Programs_Files\Arduino\libraries\lv_port_esp32-master: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\lv_port_esp32-master
Invalid library found in E:\Programs_Files\Arduino\libraries\Nscreen_32-master: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\Nscreen_32-master
Invalid library found in E:\Programs_Files\Arduino\libraries\openHASP-master: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\openHASP-master
In file included from C:\Users\eagle\AppData\Local\Temp\arduino_modified_sketch_50201\PDQgraphicstest.ino:13:
Arduino_GFX_dev_device.h:177:1: error: 'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32SPIDMA'?
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
^~~~~~~~~~~~~~~~~~~~~
please use arduino-esp32 2.0.17
Yep, you're right. esp32 2.0.17 solved the problem but nothing shows on the display. It's black.
Hi,
I'm still getting this error:
Arduino: 1.8.19 (Windows 10), Board: "ESP32S3 Dev Module, Disabled, OPI PSRAM, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 921600, None, Disabled, Disabled"
In file included from E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino:11:
Arduino_GFX_dev_device.h:14:1: error: 'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'?
14 | Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~
| Arduino_ESP32S2PAR8Q
Arduino_GFX_dev_device.h:22:1: error: 'Arduino_RGB_Display' does not name a type
22 | Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
| ^~~~~~~~~~~~~~~~~~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void setup()':
GFX_Library_for_Arduino:50:8: error: 'gfx' was not declared in this scope
50 | if (!gfx->begin())
| ^~~
GFX_Library_for_Arduino:56:7: error: 'gfx' was not declared in this scope
56 | w = gfx->width();
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void loop()':
GFX_Library_for_Arduino:148:5: error: 'gfx' was not declared in this scope
148 | gfx->drawFastHLine(0, i, w, c);
| ^~~
GFX_Library_for_Arduino:156:3: error: 'gfx' was not declared in this scope
156 | gfx->setCursor(0, 0);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void serialOut(const char*, int32_t, uint32_t, bool)':
GFX_Library_for_Arduino:226:5: error: 'gfx' was not declared in this scope
226 | gfx->fillScreen(BLACK);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void printnice(const char*, long int)':
GFX_Library_for_Arduino:236:3: error: 'gfx' was not declared in this scope
236 | gfx->setTextSize(tsb);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFillScreen()':
GFX_Library_for_Arduino:272:3: error: 'gfx' was not declared in this scope
272 | gfx->fillScreen(WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testText()':
GFX_Library_for_Arduino:284:3: error: 'gfx' was not declared in this scope
284 | gfx->setCursor(0, 0);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testPixels()':
GFX_Library_for_Arduino:377:7: error: 'gfx' was not declared in this scope
377 | gfx->drawPixel(x, y, gfx->color565(x << 3, y << 3, x * y));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testLines()':
GFX_Library_for_Arduino:398:5: error: 'gfx' was not declared in this scope
398 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:407:5: error: 'gfx' was not declared in this scope
407 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:418:5: error: 'gfx' was not declared in this scope
418 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:427:5: error: 'gfx' was not declared in this scope
427 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:438:5: error: 'gfx' was not declared in this scope
438 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:447:5: error: 'gfx' was not declared in this scope
447 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:458:5: error: 'gfx' was not declared in this scope
458 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:467:5: error: 'gfx' was not declared in this scope
467 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFastLines()':
GFX_Library_for_Arduino:485:5: error: 'gfx' was not declared in this scope
485 | gfx->drawFastHLine(0, y, w, RED);
| ^~~
GFX_Library_for_Arduino:489:5: error: 'gfx' was not declared in this scope
489 | gfx->drawFastVLine(x, 0, h, BLUE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledRects()':
GFX_Library_for_Arduino:506:5: error: 'gfx' was not declared in this scope
506 | gfx->fillRect(cx - i2, cy - i2, i, i, gfx->color565(i, i, 0));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testRects()':
GFX_Library_for_Arduino:521:5: error: 'gfx' was not declared in this scope
521 | gfx->drawRect(cx - i2, cy - i2, i, i, GREEN);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledCircles(uint8_t)':
GFX_Library_for_Arduino:538:7: error: 'gfx' was not declared in this scope
538 | gfx->fillCircle(x, y, radius, MAGENTA);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testCircles(uint8_t)':
GFX_Library_for_Arduino:560:7: error: 'gfx' was not declared in this scope
560 | gfx->drawCircle(x, y, radius, WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFillArcs()':
GFX_Library_for_Arduino:574:5: error: 'gfx' was not declared in this scope
574 | gfx->fillArc(cx1, cy1, i, i - 3, 0, i * r, RED);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testArcs()':
GFX_Library_for_Arduino:587:5: error: 'gfx' was not declared in this scope
587 | gfx->drawArc(cx1, cy1, i, i - 3, 0, i * r, WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledTriangles()':
GFX_Library_for_Arduino:602:5: error: 'gfx' was not declared in this scope
602 | gfx->fillTriangle(cx1, cy1 - i, cx1 - i, cy1 + i, cx1 + i, cy1 + i,
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testTriangles()':
GFX_Library_for_Arduino:618:5: error: 'gfx' was not declared in this scope
618 | gfx->drawTriangle(
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledRoundRects()':
GFX_Library_for_Arduino:638:5: error: 'gfx' was not declared in this scope
638 | gfx->fillRoundRect(cx - i2, cy - i2, i, i, i / 8, gfx->color565(0, i, 0));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testRoundRects()':
GFX_Library_for_Arduino:654:5: error: 'gfx' was not declared in this scope
654 | gfx->drawRoundRect(cx - i2, cy - i2, i, i, i / 8, gfx->color565(i, 0, 0));
| ^~~
exit status 1
'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
please use arduino-esp32 v2.x, v3.0 will have this error.
I have many questions, but I will ask this one:
Why did you declared these pointers at the end of the Arduino_GFX_Library.h
?
Arduino_DataBus *create_default_Arduino_DataBus();
Arduino_GFX *create_default_Arduino_GFX();
And what are they exactly ?
are they pointers to class constructor ?
if so then why you didn't declared other ones for the other two classes Arduino_ESP32RGBPanel
and Arduino_RGB_Display
?
Another question:
Where is the driver library for ST7262
? I didn't find it in \display
folder.