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:
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.
Hello @ysf_mrmr , here's our discord https://discord.com/invite/kQDU4927Kn