Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32-8048S070C Broken #233

Open
thorpedo opened this issue Feb 3, 2025 · 0 comments
Open

esp32-8048S070C Broken #233

thorpedo opened this issue Feb 3, 2025 · 0 comments

Comments

@thorpedo
Copy link

thorpedo commented Feb 3, 2025

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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant