What is the meaning of this error?

I'm trying to load the demo code named 'LvglWidgets-LVGL-7.0-NOSPEAK-2' onto a 7-inch HMI screen. I received the following error. Please help.


Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), Kart:"ESP32S3 Dev Module, OPI PSRAM, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Huge APP (3MB No OTA/1MB SPIFFS), 240MHz (WiFi), 921600, None"


LvglWidgets-LVGL-7.0-NOSPEAK-2:37:1: error: no matching function for call to 'Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)'


 );


 ^


In file included from C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/Arduino_GFX_Library.h:19,


         from C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino:15:


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:59:3: note: candidate: 'Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, int8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, int32_t, bool, uint16_t, uint16_t)'


  Arduino_ESP32RGBPanel(


  ^~~~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:59:3: note:  candidate expects 33 arguments, 23 provided


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:56:7: note: candidate: 'constexpr Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(const Arduino_ESP32RGBPanel&)'


 class Arduino_ESP32RGBPanel


    ^~~~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:56:7: note:  candidate expects 1 argument, 23 provided


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:56:7: note: candidate: 'constexpr Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(Arduino_ESP32RGBPanel&&)'


C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino\src/databus/Arduino_ESP32RGBPanel.h:56:7: note:  candidate expects 1 argument, 23 provided


LvglWidgets-LVGL-7.0-NOSPEAK-2:41:1: error: 'Arduino_RPi_DPI_RGBPanel' does not name a type; did you mean 'Arduino_ESP32RGBPanel'?


 Arduino_RPi_DPI_RGBPanel *lcd = new Arduino_RPi_DPI_RGBPanel(


 ^~~~~~~~~~~~~~~~~~~~~~~~


 Arduino_ESP32RGBPanel


In file included from C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino:147:


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\touch.h: In function 'bool touch_touched()':


touch.h:166:71: error: 'lcd' was not declared in this scope


   touch_last_x = map(ts.points[0].x, TOUCH_MAP_X1, TOUCH_MAP_X2, 0, lcd->width() - 1);


                                    ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void my_disp_flush(lv_disp_drv_t*, const lv_area_t*, lv_color_t*)':


LvglWidgets-LVGL-7.0-NOSPEAK-2:171:3: error: 'lcd' was not declared in this scope


  lcd->draw16bitRGBBitmap(area->x1, area->y1, (uint16_t *)&color_p->full, w, h);


  ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void setup()':


LvglWidgets-LVGL-7.0-NOSPEAK-2:329:3: error: 'lcd' was not declared in this scope


  lcd->begin();


  ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void loop()':


LvglWidgets-LVGL-7.0-NOSPEAK-2:473:7: error: 'lcd' was not declared in this scope


    lcd->fillScreen(BLACK);


    ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void Ce_shi()':


LvglWidgets-LVGL-7.0-NOSPEAK-2:548:7: error: 'lcd' was not declared in this scope


    lcd->fillScreen(BLACK);


    ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void listDir(fs::FS&, const char*, uint8_t)':


LvglWidgets-LVGL-7.0-NOSPEAK-2:1023:7: error: 'lcd' was not declared in this scope


    lcd->setCursor(0, 2 * i);


    ^~~


C:\Users\merme\Documents\Arduino\LvglWidgets-LVGL-7.0-NOSPEAK-2\LvglWidgets-LVGL-7.0-NOSPEAK-2.ino: In function 'void calibrateTouch(uint16_t*, uint32_t, uint32_t, uint8_t)':


LvglWidgets-LVGL-7.0-NOSPEAK-2:1180:5: error: 'lcd' was not declared in this scope


   lcd->fillRect(0, 0, size + 1, size + 1, color_bg);


   ^~~


"Arduino_GFX_Library.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\GFX_Library_for_Arduino


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\Arduino_GFX


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\Arduino_GFX-master


"SPI.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\SPI


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\SPI


"TAMC_GT911.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\TAMC_GT911


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\gt911-arduino-main


"Audio.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\ESP32-audioI2S


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\ESP32-audioI2S-master


"Wire.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\Wire


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\Wire


"SD.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\SD


Kullanılmıyor: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\SD


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\SD


"WiFi.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi


Kullanılmıyor: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\WiFiEspAT


"BLEDevice.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\BLE


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\BLE


Kullanılmıyor: C:\Users\merme\Documents\Arduino\libraries\ESP32_BLE_Arduino-master


exit status 1


no matching function for call to 'Arduino_ESP32RGBPanel::Arduino_ESP32RGBPanel(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)'




This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

Comments

  • Hello @ysf_mrmr ,

    Very sorry for the late reply.

    What version is your Arduino_GFX library? If it is version 1.3.0 or above, the function interface will be different.

    You need to modify the screen definition in the demo code:

    Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
       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 */,
       0 /* hsync_polarity */, 8 /* hsync_front_porch */, 4 /* hsync_pulse_width */, 43 /* hsync_back_porch */,
       0 /* vsync_polarity */, 8 /* vsync_front_porch */, 4 /* vsync_pulse_width */, 12 /* vsync_back_porch */,
       1 /* pclk_active_neg */, 9000000 /* prefer_speed */,
       1 /* de_idle_high */, 1 /* pclk_idle_high */);
    Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
       480 /* width */, 272 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */);
    


    If it is version 1.2.8-1.3.0, there is no need to change it.

  • thx for reply. its work. ı need more help. If you set up a discord, people help each other with voice and video.

Sign In or Register to comment.