mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
17 lines
461 B
C
17 lines
461 B
C
/*
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: CC0-1.0
|
|
*/
|
|
|
|
#include "lvgl.h"
|
|
|
|
void example_lvgl_demo_ui(lv_obj_t *scr)
|
|
{
|
|
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, 150);
|
|
lv_obj_align(label, LV_ALIGN_TOP_MID, 0, 0);
|
|
}
|