Git Product home page Git Product logo

Comments (16)

Neothai avatar Neothai commented on July 2, 2024 1

I updated lvgl library and still get this error:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

LVGL_Arduino-3.5CTP-gt911:5:10: fatal error: demos/lv_demos.h: No such file or directory

 #include <demos/lv_demos.h>

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

compilation terminated.

exit status 1

demos/lv_demos.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Have you set #define LV_USE_DEMO_WIDGETS in lv_conf.h to 1?

// Your code
lv_disp_draw_buf_init( &draw_buf, buf, NULL, screenWidth * screenHeight / 6 );
  
/*初始化显示*/
static lv_disp_drv_t disp_drv;
lv_disp_drv_init( &disp_drv );

/*将以下行更改为显示分辨率*/
disp_drv.hor_res = screenWidth;
disp_drv.ver_res = screenHeight;
disp_drv.flush_cb = my_disp_flush;
disp_drv.draw_buf = &draw_buf;
lv_disp_drv_register( &disp_drv );
  
/*初始化(虚拟)输入设备驱动程序*/
static lv_indev_drv_t indev_drv;
lv_indev_drv_init( &indev_drv );
indev_drv.type = LV_INDEV_TYPE_POINTER;
indev_drv.read_cb = my_touchpad_read;
lv_indev_drv_register( &indev_drv );

I think the style of your code in this section is probably that of LVGL version 8..
LVGL version 9 The code will look something like this.

/*LVGL draw into this buffer, 1/10 screen size usually works well. The size is in bytes*/
#define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))
uint32_t draw_buf[DRAW_BUF_SIZE / 4];

/* LVGL calls it when a rendered image needs to copied to the display*/
void my_disp_flush( lv_display_t *disp, const lv_area_t *area, uint8_t * px_map){
    /*For example ("my_..." functions needs to be implemented by you)
    uint32_t w = lv_area_get_width(area);
    uint32_t h = lv_area_get_height(area);

    my_set_window(area->x1, area->y1, w, h);
    my_draw_bitmaps(px_map, w * h);
     */

    lv_disp_flush_ready(disp); /*Call it to tell LVGL you are ready*/
}

/*Read the touchpad*/
void my_touchpad_read( lv_indev_t * indev, lv_indev_data_t * data ){
    /*For example  ("my_..." functions needs to be implemented by you)
    int32_t x, y;
    bool touched = my_get_touch( &x, &y );

    if(!touched) {
        data->state = LV_INDEV_STATE_RELEASED;
    } else {
        data->state = LV_INDEV_STATE_PRESSED;

        data->point.x = x;
        data->point.y = y;
    }
     */
}

void lvSystemSetup(){
    lv_init();

    disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);
    lv_display_set_flush_cb(disp, my_disp_flush);
    lv_display_set_buffers(disp, draw_buf, NULL, sizeof(draw_buf), LV_DISPLAY_RENDER_MODE_PARTIAL);

    /*Initialize the input device driver*/
    lv_indev_t * indev = lv_indev_create();
    lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER); /*Touchpad should have POINTER type*/
    lv_indev_set_read_cb(indev, my_touchpad_read);
}

I think this link might be useful. https://docs.lvgl.io/master/integration/framework/arduino.html

from lvgl.

Neothai avatar Neothai commented on July 2, 2024 1

I did that I got this error:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

E:\Programs_Files\Arduino\libraries\lvgl\src\demos\widgets\assets\img_clothes.c:6:10: fatal error: lvgl/lvgl.h: No such file or directory

 #include "lvgl/lvgl.h"

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

compilation terminated.

exit status 1

Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

In your ..\lvgl\src\demos\widgets\assets\img_clothes.c file
try changing #include "lvgl/lvgl.h" to #include "../../../lvgl.h" and try compiling again.

from lvgl.

Neothai avatar Neothai commented on July 2, 2024 1

Try compiling this again. LVGL_Arduino-3.5CTP-gt911_2.zip

from lvgl.

Neothai avatar Neothai commented on July 2, 2024 1

And add this:

typedef struct {
    void * buf1;
    void * buf2;
    uint32_t size; // Size of each buffer in bytes
} lv_disp_draw_buf_t;

At E:\Programs_Files\Arduino\libraries\lvgl\src\display\lv_display.h

Why do you want to add this?
You want to customize the display buffer, e.g. Buffer size Number of buffers? If so, you can adjust it here.

#define DRAW_BUF_SIZE (screenWidth * screenHeight / 10 * (LV_COLOR_DEPTH / 8))

uint8_t draw_buf[DRAW_BUF_SIZE / 4];

/*If you need to use 2 display buffer, uncomment this line*/
//uint8_t draw_buf2[DRAW_BUF_SIZE / 4];

//=====================================================================//

// in lvSystemSetup()
/*If you need to use 2 display buffer, uncomment this line*/
//lv_display_set_buffers(disp, draw_buf, draw_buf2, sizeof(DRAW_BUF_SIZE), LV_DISPLAY_RENDER_MODE_PARTIAL);

And this is the latest file I updated. Try compiling it. LVGL_Arduino-3.5CTP-gt911_3.zip

from lvgl.

hape65 avatar hape65 commented on July 2, 2024

you have to copy the demos and the examples folder from ..llibraries/vgl/demos to ..libraries/lvgl/src/demos same for examples

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I did that:

image

And get this error:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

E:\Programs_Files\Arduino\libraries\lvgl-master\src\demos\widgets\assets\img_clothes.c:6:10: fatal error: lvgl/lvgl.h: No such file or directory

 #include "lvgl/lvgl.h"

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

compilation terminated.

exit status 1

Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I just want to include this file as a start:
E:\Programs_Files\Arduino\libraries\lvgl\src\indev\lv_indev.h

In the arduino code I did this:
#include "lvgl/src/indev/lv_indev.h" but it didn't work. What to do ?

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

Where lv_indev_drv_t is declared ? I want to run a simple sketch.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

Have you set #define LV_USE_DEMO_WIDGETS in lv_conf.h to 1?

Yes. But when I use the old lvgl that came with the display folder from the seller, I don't get any error. I've tried to troubleshoot the source of the error when using the new lvgl library but it will be a difficult one to solve in a short time since I don't have a general understanding of how the library folder works.

I think this link might be useful. https://docs.lvgl.io/master/integration/framework/arduino.html

I did that I got this error:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

E:\Programs_Files\Arduino\libraries\lvgl\src\demos\widgets\assets\img_clothes.c:6:10: fatal error: lvgl/lvgl.h: No such file or directory

 #include "lvgl/lvgl.h"

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

compilation terminated.

exit status 1

Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I did and got this list of errors:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"

LVGL_Arduino-3.5CTP-gt911_2:652:21: error: variable or field 'my_disp_flush' declared void

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

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

LVGL_Arduino-3.5CTP-gt911_2:652:21: error: 'lv_disp_drv_t' was not declared in this scope

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:21: note: suggested alternative: 'lv_fs_drv_t'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

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

                     lv_fs_drv_t

LVGL_Arduino-3.5CTP-gt911_2:652:36: error: 'disp' was not declared in this scope

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                    ^~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:36: note: suggested alternative: 'dup'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                    ^~~~

                                    dup

LVGL_Arduino-3.5CTP-gt911_2:652:42: error: expected primary-expression before 'const'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                          ^~~~~

LVGL_Arduino-3.5CTP-gt911_2:652:76: error: expected primary-expression before '*' token

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                            ^

LVGL_Arduino-3.5CTP-gt911_2:652:77: error: 'color_p' was not declared in this scope

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                             ^~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:77: note: suggested alternative: 'lv_color_t'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                             ^~~~~~~

                                                                             lv_color_t

LVGL_Arduino-3.5CTP-gt911_2:490:24: error: 'TFT_HOR_RES' was not declared in this scope

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                        ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:24: note: in definition of macro 'DRAW_BUF_SIZE'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                        ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:24: note: suggested alternative: 'LV_HOR_RES'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                        ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:24: note: in definition of macro 'DRAW_BUF_SIZE'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                        ^~~~~~~~~~~

LVGL_Arduino-3.5CTP-gt911_2:490:38: error: 'TFT_VER_RES' was not declared in this scope

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                                      ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:38: note: in definition of macro 'DRAW_BUF_SIZE'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                                      ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:38: note: suggested alternative: 'LV_VER_RES'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                                      ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:490:38: note: in definition of macro 'DRAW_BUF_SIZE'

 #define DRAW_BUF_SIZE (TFT_HOR_RES * TFT_VER_RES / 10 * (LV_COLOR_DEPTH / 8))

                                      ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino: In function 'void lvSystemSetup()':

LVGL_Arduino-3.5CTP-gt911_2:526:5: error: 'disp' was not declared in this scope

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

     ^~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:526:5: note: suggested alternative: 'dup'

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

     ^~~~

     dup

LVGL_Arduino-3.5CTP-gt911_2:526:30: error: 'TFT_HOR_RES' was not declared in this scope

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

                              ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:526:30: note: suggested alternative: 'LV_HOR_RES'

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

                              ^~~~~~~~~~~

                              LV_HOR_RES

LVGL_Arduino-3.5CTP-gt911_2:526:43: error: 'TFT_VER_RES' was not declared in this scope

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

                                           ^~~~~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:526:43: note: suggested alternative: 'LV_VER_RES'

     disp = lv_display_create(TFT_HOR_RES, TFT_VER_RES);

                                           ^~~~~~~~~~~

                                           LV_VER_RES

LVGL_Arduino-3.5CTP-gt911_2:528:34: error: 'draw_buf' was not declared in this scope

     lv_display_set_buffers(disp, draw_buf, NULL, sizeof(draw_buf), LV_DISPLAY_RENDER_MODE_PARTIAL);

                                  ^~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:528:34: note: suggested alternative: 'lv_draw_buf_t'

     lv_display_set_buffers(disp, draw_buf, NULL, sizeof(draw_buf), LV_DISPLAY_RENDER_MODE_PARTIAL);

                                  ^~~~~~~~

                                  lv_draw_buf_t

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino: At global scope:

LVGL_Arduino-3.5CTP-gt911_2:541: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

LVGL_Arduino-3.5CTP-gt911_2:652:21: error: variable or field 'my_disp_flush' declared void

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

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

LVGL_Arduino-3.5CTP-gt911_2:652:21: error: 'lv_disp_drv_t' was not declared in this scope

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:21: note: suggested alternative: 'lv_fs_drv_t'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

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

                     lv_fs_drv_t

LVGL_Arduino-3.5CTP-gt911_2:652:36: error: 'disp' was not declared in this scope

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                    ^~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:36: note: suggested alternative: 'dup'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                    ^~~~

                                    dup

LVGL_Arduino-3.5CTP-gt911_2:652:42: error: expected primary-expression before 'const'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                          ^~~~~

LVGL_Arduino-3.5CTP-gt911_2:652:76: error: expected primary-expression before '*' token

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                            ^

LVGL_Arduino-3.5CTP-gt911_2:652:77: error: 'color_p' was not declared in this scope

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                             ^~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:652:77: note: suggested alternative: 'lv_color_t'

 void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )

                                                                             ^~~~~~~

                                                                             lv_color_t

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino: In function 'void setup()':

LVGL_Arduino-3.5CTP-gt911_2:816:31: error: 'draw_buf' was not declared in this scope

       lv_disp_draw_buf_init( &draw_buf, buf, NULL, screenWidth * screenHeight / 6 );

                               ^~~~~~~~

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:816:31: note: suggested alternative: 'lv_draw_buf_t'

       lv_disp_draw_buf_init( &draw_buf, buf, NULL, screenWidth * screenHeight / 6 );

                               ^~~~~~~~

                               lv_draw_buf_t

LVGL_Arduino-3.5CTP-gt911_2:816:7: error: 'lv_disp_draw_buf_init' was not declared in this scope

       lv_disp_draw_buf_init( &draw_buf, buf, NULL, screenWidth * screenHeight / 6 );

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:816:7: note: suggested alternative: 'lv_draw_buf_init'

       lv_disp_draw_buf_init( &draw_buf, buf, NULL, screenWidth * screenHeight / 6 );

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

       lv_draw_buf_init

LVGL_Arduino-3.5CTP-gt911_2:819:14: 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

LVGL_Arduino-3.5CTP-gt911_2:820:26: error: 'disp_drv' was not declared in this scope

       lv_disp_drv_init( &disp_drv );

                          ^~~~~~~~

LVGL_Arduino-3.5CTP-gt911_2:820:7: error: 'lv_disp_drv_init' was not declared in this scope

       lv_disp_drv_init( &disp_drv );

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:820:7: note: suggested alternative: 'lv_fs_drv_init'

       lv_disp_drv_init( &disp_drv );

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

       lv_fs_drv_init

LVGL_Arduino-3.5CTP-gt911_2:826:7: error: 'lv_disp_drv_register' was not declared in this scope

       lv_disp_drv_register( &disp_drv );

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:826:7: note: suggested alternative: 'lv_fs_drv_register'

       lv_disp_drv_register( &disp_drv );

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

       lv_fs_drv_register

LVGL_Arduino-3.5CTP-gt911_2:829:14: 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

LVGL_Arduino-3.5CTP-gt911_2:830:27: error: 'indev_drv' was not declared in this scope

       lv_indev_drv_init( &indev_drv );

                           ^~~~~~~~~

LVGL_Arduino-3.5CTP-gt911_2:830:7: error: 'lv_indev_drv_init' was not declared in this scope

       lv_indev_drv_init( &indev_drv );

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:830:7: note: suggested alternative: 'lv_fs_drv_init'

       lv_indev_drv_init( &indev_drv );

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

       lv_fs_drv_init

LVGL_Arduino-3.5CTP-gt911_2:833:7: error: 'lv_indev_drv_register' was not declared in this scope

       lv_indev_drv_register( &indev_drv );

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:833:7: note: suggested alternative: 'lv_fs_drv_register'

       lv_indev_drv_register( &indev_drv );

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

       lv_fs_drv_register

LVGL_Arduino-3.5CTP-gt911_2:848:7: error: 'lv_demo_widgets' was not declared in this scope

       lv_demo_widgets();            // OK

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

E:\projects_electronics_programming\tft\esp32_3248s035\LVGL_Arduino-3.5CTP-gt911_2\LVGL_Arduino-3.5CTP-gt911_2.ino:848:7: note: suggested alternative: 'lv_demos_create'

       lv_demo_widgets();            // OK

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

       lv_demos_create

exit status 1

variable or field 'my_disp_flush' declared void

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This is the code example I'm using:

LVGL_Arduino-3.5CTP-gt911_2.zip

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I had to uncomment these lines:

static const uint16_t screenWidth  = 320;
static const uint16_t screenHeight = 480;

And add this:

typedef struct {
    void * buf1;
    void * buf2;
    uint32_t size; // Size of each buffer in bytes
} lv_disp_draw_buf_t;

At E:\Programs_Files\Arduino\libraries\lvgl\src\display\lv_display.h

It compiles but nothing shows on the display.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

Why do you want to add this?
Because it's not there and if I don't add it in one of the header files, I will get an error. I even didn't find any declaration anywhere about that typedef, I got it by asking chatgpt.

You want to customize the display buffer, e.g. Buffer size Number of buffers? If so, you can adjust it here.

All I want now is to get the display to work. Even TFT_eSPI examples aren't working. So, now I better know what is the display problem and get it to work with TFT_eSPI examples then run lvgl examples.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I opened a new issue in Bodmer TFT_eSPI library:
https://github.com/Bodmer/TFT_eSPI/issues/3323

I'm waiting for the support because nothing shows on the display running any of the library's examples.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

I flashed the board with the binary in the folder package and it worked to its original demo code it came with:

image

image

But programming it with arduino platform doesn't work.

from lvgl.

lvgl-bot avatar lvgl-bot commented on July 2, 2024

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

from lvgl.

eagl1 avatar eagl1 commented on July 2, 2024

Anyway, I was able to program the board with:

#include <Arduino_GFX_Library.h>.

So I will try to know the related issues on lvgl if it worked with me eventually.

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.