• sales

    +86-0755-88291180

EMO_PIC/esp_bsp.c lv_port.h:47:5: error: unknown type name 'lv_disp_rot_t'

2025-02-25 03:50:35 Ask

1-Demo/Demo_Arduino/DEMO_PIC/esp_bsp.c:28:

lv_port.h:47:5: error: unknown type name 'lv_disp_rot_t'

  47 |     lv_disp_rot_t   sw_rotate;    /* Panel software rotate_mask */

     |     ^~~~~~~~~~~~~

In file included from /media/sf_SharedFolder/1-Demo/Demo_Arduino/DEMO_PIC/esp_bsp.c:30:

esp_bsp.h:59:5: error: unknown type name 'lv_disp_rot_t'

  59 |     lv_disp_rot_t rotate;           /*!< Rotation configuration for the display */

     |     ^~~~~~~~~~~~~

esp_bsp.c:79:5: error: unknown type name 'lv_disp_rot_t'

  79 |     lv_disp_rot_t rotate;               /*!< Rotation configuration for the display */

     |     ^~~~~~~~~~~~~

/media/sf_SharedFolder/1-Demo/Demo_Arduino/DEMO_PIC/esp_bsp.c: In function 'bsp_display_lcd_init':

esp_bsp.c:367:31: error: 'LV_DISP_ROT_180' undeclared (first use in this function); did you mean 'LV_DISP_ROTATION_180'?

 367 |     if (disp_cfg.sw_rotate == LV_DISP_ROT_180 || disp_cfg.sw_rotate == LV_DISP_ROT_NONE) {

     |                               ^~~~~~~~~~~~~~~

     |                               LV_DISP_ROTATION_180

/media/sf_SharedFolder/1-Demo/Demo_Arduino/DEMO_PIC/esp_bsp.c:367:31: note: each undeclared identifier is reported only once for each function it appears in

esp_bsp.c:367:72: error: 'LV_DISP_ROT_NONE' undeclared (first use in this function); did you mean 'LV_DIR_NONE'?

 367 |     if (disp_cfg.sw_rotate == LV_DISP_ROT_180 || disp_cfg.sw_rotate == LV_DISP_ROT_NONE) {

     |                                                                        ^~~~~~~~~~~~~~~~

     |                                                                        LV_DIR_NONE

/media/sf_SharedFolder/1-Demo/Demo_Arduino/DEMO_PIC/esp_bsp.c: In function 'bsp_touch_process_points_cb':

esp_bsp.c:413:13: error: 'LV_DISP_ROT_270' undeclared (first use in this function); did you mean 'LV_DISP_ROTATION_270'?

 413 |         if (LV_DISP_ROT_270 == touch_handle->rotate) {

     |             ^~~~~~~~~~~~~~~

     |             LV_DISP_ROTATION_270

esp_bsp.c:417:20: error: 'LV_DISP_ROT_180' undeclared (first use in this function); did you mean 'LV_DISP_ROTATION_180'?

 417 |         } else if (LV_DISP_ROT_180 == touch_handle->rotate) {

     |                    ^~~~~~~~~~~~~~~

     |                    LV_DISP_ROTATION_180

esp_bsp.c:421:20: error: 'LV_DISP_ROT_90' undeclared (first use in this function); did you mean 'LV_DISP_ROTATION_90'?

 421 |         } else if (LV_DISP_ROT_90 == touch_handle->rotate) {

     |                    ^~~~~~~~~~~~~~

     |                    LV_DISP_ROTATION_90

0answers