mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
lcd: Support rotation SSD1306 and changed example for using LVGL port component.
This commit is contained in:
@@ -12,6 +12,7 @@ void example_lvgl_demo_ui(lv_disp_t *disp)
|
||||
lv_obj_t *label = lv_label_create(scr);
|
||||
lv_label_set_long_mode(label, LV_LABEL_LONG_SCROLL_CIRCULAR); /* Circular scroll */
|
||||
lv_label_set_text(label, "Hello Espressif, Hello LVGL.");
|
||||
lv_obj_set_width(label, 128);
|
||||
/* Size of the screen (if you use rotation 90 or 270, please set disp->driver->ver_res) */
|
||||
lv_obj_set_width(label, disp->driver->hor_res);
|
||||
lv_obj_align(label, LV_ALIGN_TOP_MID, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user