You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
since new Espressif ESP32 board package 3.0 was released Arduino_GFX_Library can´t be compiled any more.
Hardware: ESP32-8048S043 (4,3" RGB-display with ESP32S3 onboard and ILI9485 driver)
Code:
`#include <Arduino_GFX_Library.h>
#define GFX_BL DF_GFX_BL // default backlight pin, you may replace DF_GFX_BL to actual backlight pin
#define TFT_BL 2 //Backlight pin
/* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
#if defined(DISPLAY_DEV_KIT)
Arduino_GFX gfx = create_default_Arduino_GFX();
#else / !defined(DISPLAY_DEV_KIT) */
Error messages during compilation:
Clock.ino:23:1: error: 'Arduino_ESP32RGBPanel' does not name a type
23 | Arduino_ESP32RGBPanel *bus = new Arduino_ESP32RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~
Clock.ino:32:2: error: 'Arduino_RPi_DPI_RGBPanel' does not name a type
32 | Arduino_RPi_DPI_RGBPanel *gfx = new Arduino_RPi_DPI_RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~~~~
Clock.ino: In function 'void setup()':
Clock.ino:76:5: error: 'gfx' was not declared in this scope
76 | gfx->begin();
| ^~~
Clock.ino: In function 'void draw_round_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Clock.ino:202:5: error: 'gfx' was not declared in this scope
202 | gfx->drawLine(x0, y0, x1, y1, c);
| ^~~
Clock.ino: In function 'void draw_square_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Clock.ino:265:9: error: 'gfx' was not declared in this scope
265 | gfx->drawLine(x0, y0, x1, y1, c);
| ^~~
Clock.ino: In function 'void redraw_hands_cached_draw_and_erase()':
Clock.ino:271:5: error: 'gfx' was not declared in this scope
271 | gfx->startWrite();
| ^~~
Clock.ino: In function 'void write_cache_pixel(int16_t, int16_t, int16_t, bool, bool)':
Clock.ino:377:5: error: 'gfx' was not declared in this scope
377 | gfx->writePixel(x, y, color);
| ^~~
Several libraries were found for "Arduino_GFX_Library.h"
Used: ....\libraries\Arduino_GFX-master
Not used: ....\libraries\GFX_Library_for_Arduino
exit status 1
Compilation error: 'Arduino_ESP32RGBPanel' does not name a type
If this example is compiled with ESP32 board package 2.0.17 no error message occurs.
Espressif release notes gives no information how to manage this incompatibility.
Any hints?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
since new Espressif ESP32 board package 3.0 was released Arduino_GFX_Library can´t be compiled any more.
Hardware: ESP32-8048S043 (4,3" RGB-display with ESP32S3 onboard and ILI9485 driver)
Code:
`#include <Arduino_GFX_Library.h>
#define GFX_BL DF_GFX_BL // default backlight pin, you may replace DF_GFX_BL to actual backlight pin
#define TFT_BL 2 //Backlight pin
/* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
#if defined(DISPLAY_DEV_KIT)
Arduino_GFX gfx = create_default_Arduino_GFX();
#else / !defined(DISPLAY_DEV_KIT) */
/* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */
//Arduino_DataBus *bus = create_default_Arduino_DataBus();
/* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */
//Arduino_GFX gfx = new Arduino_ILI9341(bus, DF_GFX_RST, 0 / rotation /, false / IPS */);
Arduino_ESP32RGBPanel bus = new Arduino_ESP32RGBPanel(
GFX_NOT_DEFINED / CS /, GFX_NOT_DEFINED / SCK /, GFX_NOT_DEFINED / SDA /,
40 / DE /, 41 / VSYNC /, 39 / HSYNC /, 42 / PCLK /,
45 / R0 /, 48 / R1 /, 47 / R2 /, 21 / R3 /, 14 / R4 /,
5 / G0 /, 6 / G1 /, 7 / G2 /, 15 / G3 /, 16 / G4 /, 4 / G5 /,
8 / B0 /, 3 / B1 /, 46 / B2 /, 9 / B3 /, 1 / B4 */
);
// option 1:
// ST7262 IPS LCD 800x480
Arduino_RPi_DPI_RGBPanel gfx = new Arduino_RPi_DPI_RGBPanel(
bus,
800 / width /, 0 / hsync_polarity /, 8 / hsync_front_porch /, 4 / hsync_pulse_width /, 8 / hsync_back_porch /,
480 / height /, 0 / vsync_polarity /, 8 / vsync_front_porch /, 4 / vsync_pulse_width /, 8 / vsync_back_porch /,
1 / pclk_active_neg /, 16000000 / prefer_speed /, true / auto_flush */);
#endif /* !defined(DISPLAY_DEV_KIT) */`
....
....
Error messages during compilation:
Clock.ino:23:1: error: 'Arduino_ESP32RGBPanel' does not name a type
23 | Arduino_ESP32RGBPanel *bus = new Arduino_ESP32RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~
Clock.ino:32:2: error: 'Arduino_RPi_DPI_RGBPanel' does not name a type
32 | Arduino_RPi_DPI_RGBPanel *gfx = new Arduino_RPi_DPI_RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~~~~
Clock.ino: In function 'void setup()':
Clock.ino:76:5: error: 'gfx' was not declared in this scope
76 | gfx->begin();
| ^~~
Clock.ino: In function 'void draw_round_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Clock.ino:202:5: error: 'gfx' was not declared in this scope
202 | gfx->drawLine(x0, y0, x1, y1, c);
| ^~~
Clock.ino: In function 'void draw_square_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Clock.ino:265:9: error: 'gfx' was not declared in this scope
265 | gfx->drawLine(x0, y0, x1, y1, c);
| ^~~
Clock.ino: In function 'void redraw_hands_cached_draw_and_erase()':
Clock.ino:271:5: error: 'gfx' was not declared in this scope
271 | gfx->startWrite();
| ^~~
Clock.ino: In function 'void write_cache_pixel(int16_t, int16_t, int16_t, bool, bool)':
Clock.ino:377:5: error: 'gfx' was not declared in this scope
377 | gfx->writePixel(x, y, color);
| ^~~
Several libraries were found for "Arduino_GFX_Library.h"
Used: ....\libraries\Arduino_GFX-master
Not used: ....\libraries\GFX_Library_for_Arduino
exit status 1
Compilation error: 'Arduino_ESP32RGBPanel' does not name a type
If this example is compiled with ESP32 board package 2.0.17 no error message occurs.
Espressif release notes gives no information how to manage this incompatibility.
Any hints?
Pius
Beta Was this translation helpful? Give feedback.
All reactions