-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I'm using Waveshare ESP32-S3-Touch-LCD-7 development board, also want to use Wire library to interact with sensor connected on I2C port of the dev board.
From seeing earlier reported issues, I understood updates needs to be done in ESP32_Display_Panel library code.
I tried using code from branch: feat/update_i2c_driver_ng (Also used corresponding branch for dependent library ESP32_IO_Expander)
- Is this recommended approach to use these libraries?
- If yes, Getting below error suggesting version mismatch
In file included from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_private.hpp:16,
from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:13:
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/supported/esp_panel_board_config_supported.h:241:10: error: #error "The internal board configuration file version is not compatible. Please update it with the file from the library"
241 | #error "The internal board configuration file version is not compatible. Please update it with the file from the library"
| ^~~~~
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:229:13: error: macro "ESP_PANEL_TOUCH_I2C_CONTROL_PANEL_CONFIG" passed 2 arguments, but takes just 1
229 | ),
| ^
In file included from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/drivers/touch/esp_panel_touch_factory.hpp:12,
from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_config.hpp:13,
from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:10:
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/drivers/touch/esp_panel_touch.hpp:770:9: note: macro "ESP_PANEL_TOUCH_I2C_CONTROL_PANEL_CONFIG" defined here
770 | #define ESP_PANEL_TOUCH_I2C_CONTROL_PANEL_CONFIG(name) ESP_PANEL_TOUCH_I2C_CONTROL_PANEL_CONFIG_NG(name, 400000)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:212:38: error: expected primary-expression before '{' token
212 | .touch = BoardConfig::TouchConfig{
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:212:38: error: expected '}' before '{' token
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:30:52: note: to match this '{'
30 | const BoardConfig ESP_PANEL_BOARD_DEFAULT_CONFIG = {
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:212:38: error: expected ',' or ';' before '{' token
212 | .touch = BoardConfig::TouchConfig{
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:276:6: error: expected unqualified-id before ',' token
276 | },
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:281:5: error: expected unqualified-id before '.' token
281 | .backlight = BoardConfig::BacklightConfig{
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:313:6: error: expected unqualified-id before ',' token
313 | },
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:318:5: error: expected unqualified-id before '.' token
318 | .io_expander = BoardConfig::IO_ExpanderConfig{
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:336:6: error: expected unqualified-id before ',' token
336 | },
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:340:5: error: expected unqualified-id before '.' token
340 | .stage_callbacks = {
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:401:6: error: expected unqualified-id before ',' token
401 | },
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:402:1: error: expected unqualified-id before '}' token
402 | };
| ^
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_default_config.cpp:402:1: error: expected declaration before '}' token
In file included from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board_private.hpp:16,
from /home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/esp_panel_board.cpp:11:
/home/tjogani/Arduino/libraries/ESP32_Display_Panel/src/board/supported/esp_panel_board_config_supported.h:241:10: error: #error "The internal board configuration file version is not compatible. Please update it with the file from the library"
241 | #error "The internal board configuration file version is not compatible. Please update it with the file from the library"
| ^~~~~
exit status 1
Compilation error: exit status 1`
Please help me understand how to use ESP32_Display_Panel library when Wire is supposed to be used in the same project.
I'm using Arduino IDE for the project development.
Please let me know if more information is needed.
Thanks