You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/esp32_smartdisplay.c: In function 'smartdisplay_init':
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/esp32_smartdisplay.c:197:15: error: 'lv_display_t' {aka 'struct lv_display_t'} has no member named 'sw_rotate'
if (!display->sw_rotate)
^~
*** [.pio\build\esp32-s3-devkitc-1\libb72\esp32_smartdisplay\esp32_smartdisplay.c.o] Error 1
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/lvgl_panel_st7262_par.c: In function 'lvgl_lcd_init':
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/lvgl_panel_st7262_par.c:72:12: error: 'lv_display_t' {aka 'struct lv_display_t'} has
no member named 'sw_rotate'
display->sw_rotate = 1;
^~
*** [.pio\build\esp32-s3-devkitc-1\libb72\esp32_smartdisplay\lvgl_panel_st7262_par.c.o] Error 1
Following the tutorial when i build the project:
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/esp32_smartdisplay.c: In function 'smartdisplay_init':
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/esp32_smartdisplay.c:197:15: error: 'lv_display_t' {aka 'struct lv_display_t'} has no member named 'sw_rotate'
if (!display->sw_rotate)
^~
*** [.pio\build\esp32-s3-devkitc-1\libb72\esp32_smartdisplay\esp32_smartdisplay.c.o] Error 1
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/lvgl_panel_st7262_par.c: In function 'lvgl_lcd_init':
.pio/libdeps/esp32-s3-devkitc-1/esp32_smartdisplay/src/lvgl_panel_st7262_par.c:72:12: error: 'lv_display_t' {aka 'struct lv_display_t'} has
no member named 'sw_rotate'
display->sw_rotate = 1;
^~
*** [.pio\build\esp32-s3-devkitc-1\libb72\esp32_smartdisplay\lvgl_panel_st7262_par.c.o] Error 1
My platformio.ini:
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-8048S070C
framework = arduino
lib_deps = rzeldent/esp32_smartdisplay
build_flags =
-Ofast
-Wall
'-D BOARD_NAME="${this.board}"'
'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO'
#'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG'
#'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE'
'-D LV_CONF_PATH=${platformio.include_dir}/lv_conf.h'
My program:
#include <Arduino.h>
#include <esp32_smartdisplay.h>
void setup()
{
smartdisplay_init();
auto display = lv_display_get_default();
// lv_display_set_rotation(display, LV_DISPLAY_ROTATION_90);
// lv_display_set_rotation(display, LV_DISPLAY_ROTATION_180);
// lv_display_set_rotation(display, LV_DISPLAY_ROTATION_270);
}
auto lv_last_tick = millis();
void loop()
{
auto const now = millis();
// Update the ticker
lv_tick_inc(now - lv_last_tick);
lv_last_tick = now;
// Update the UI
lv_timer_handler();
}
The text was updated successfully, but these errors were encountered: