Open utterances-bot opened 6 months ago
Hello, I'm just trying to run a 1.69 inch Waveshare Display with ESP32 boards. So I wanted go give your project a try. But unfortunately it throws me an error that lv_conf.h is not found. This file isn't in the lvgl folder. You wrote "Assuming you have LVGL installed and configured correctly(skipping LVGL setup for brevity)" What do you mean by this? I installed the library with the Arduino library manager ..
ok, I found the installation guide for lvgl library and could integrate it successfully. But now I get lot of errors while compiling the script:
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:10:8: error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'?
static lv_disp_draw_buf_t draw_buf;
^~~~~~
lv_draw_buf_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:12:8: error: 'lv_disp_drv_t' does not name a type; did you mean 'lv_fs_drv_t'?
static lv_disp_drv_t disp_drv;
^~~~~
lv_fs_drv_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: error: variable or field 'disp_flush' declared void
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: error: 'lv_disp_drv_t' was not declared in this scope
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: note: suggested alternative: 'lv_fs_drv_t'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
lv_fs_drv_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:32: error: 'disp' was not declared in this scope
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:32: note: suggested alternative: 'dup'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~
dup
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:38: error: expected primary-expression before 'const'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:72: error: expected primary-expression before '' token
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:73: error: 'color_p' was not declared in this scope
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:73: note: suggested alternative: 'lv_color_t'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~
lv_color_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: error: variable or field 'disp_flush' declared void
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: error: 'lv_disp_drv_t' was not declared in this scope
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:17: note: suggested alternative: 'lv_fs_drv_t'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
lv_fs_drv_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:32: error: 'disp' was not declared in this scope
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:32: note: suggested alternative: 'dup'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~
dup
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:38: error: expected primary-expression before 'const'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:72: error: expected primary-expression before '' token
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:73: error: 'color_p' was not declared in this scope
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:15:73: note: suggested alternative: 'lv_color_t'
void disp_flush(lv_disp_drv_t disp, const lv_area_t area, lv_color_t color_p) {
^~~
lv_color_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino: In function 'void lvglInit()':
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:23:26: error: 'draw_buf' was not declared in this scope
lv_disp_draw_buf_init(&draw_buf, disp_draw_buf, NULL, screenWidth 10);
^~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:23:26: note: suggested alternative: 'disp_draw_buf'
lv_disp_draw_buf_init(&draw_buf, disp_draw_buf, NULL, screenWidth 10);
^~~~
disp_draw_buf
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:23:3: error: 'lv_disp_draw_buf_init' was not declared in this scope
lv_disp_draw_buf_init(&draw_buf, disp_draw_buf, NULL, screenWidth 10);
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:23:3: note: suggested alternative: 'lv_draw_buf_init'
lv_disp_draw_buf_init(&draw_buf, disp_draw_buf, NULL, screenWidth 10);
^~~~~
lv_draw_buf_init
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:24:21: error: 'disp_drv' was not declared in this scope
lv_disp_drv_init(&disp_drv);
^~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:24:3: error: 'lv_disp_drv_init' was not declared in this scope
lv_disp_drv_init(&disp_drv);
^~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:24:3: note: suggested alternative: 'lv_fs_drv_init'
lv_disp_drv_init(&disp_drv);
^~~~
lv_fs_drv_init
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:27:23: error: 'disp_flush' was not declared in this scope
disp_drv.flush_cb = disp_flush;
^~~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:27:23: note: suggested alternative: 'esp_flash_t'
disp_drv.flush_cb = disp_flush;
^~~~~~
esp_flash_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:29:3: error: 'lv_disp_drv_register' was not declared in this scope
lv_disp_drv_register(&disp_drv);
^~~~~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:29:3: note: suggested alternative: 'lv_fs_drv_register'
lv_disp_drv_register(&disp_drv);
^~~~~~~~
lv_fs_drv_register
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:30:10: error: 'lv_indev_drv_t' does not name a type; did you mean 'lv_indev_data_t'?
static lv_indev_drv_t indev_drv;
^~~~~~
lv_indev_data_t
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:31:22: error: 'indev_drv' was not declared in this scope
lv_indev_drv_init(&indev_drv);
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:31:3: error: 'lv_indev_drv_init' was not declared in this scope
lv_indev_drv_init(&indev_drv);
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:31:3: note: suggested alternative: 'lv_fs_drv_init'
lv_indev_drv_init(&indev_drv);
^~~~~
lv_fs_drv_init
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:33:3: error: 'lv_indev_drv_register' was not declared in this scope
lv_indev_drv_register(&indev_drv);
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:33:3: note: suggested alternative: 'lv_fs_drv_register'
lv_indev_drv_register(&indev_drv);
^~~~~
lv_fs_drv_register
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino: In function 'void main_Screen()':
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:41:17: error: 'lv_font_montserrat_30' was not declared in this scope
font_large = &lv_font_montserrat_30;
^~~~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:41:17: note: suggested alternative: 'lv_font_montserrat_14'
font_large = &lv_font_montserrat_30;
^~~~~
lv_font_montserrat_14
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:53:3: error: 'lv_scr_load' was not declared in this scope
lv_scr_load(scr);
^~~
/Users/martinlanius/Documents/Arduino/esp32_1.69inch/esp32_1.69inch.ino:53:3: note: suggested alternative: 'lv_screen_load'
@Martius108 i guess u should downgrade the lvgl version, mine is working using this version : lib_deps = moononournation/GFX Library for Arduino@^1.4.6 lvgl/lvgl@8.1.0
Interfacing Waveshare 1.47" LCD With ESP32 & LVGL | Aravind VS
Interfacing a Waveshare 1.47 inch rounded corner LCD display module with ESP32 & LVGL library
https://blog.aravindvs.com/posts/interfacing-waveshare-1.47inch-lcd-with-esp32/