使用新增符號參考此處
LVGL內建符號
1. 使用的組件
Function Code欄位加入程式碼
lv_obj_set_style_bg_img_src(ui->screen_btn_1, SET_SYMBOL, 0);
lv_label_set_text(ui->screen_label_1, SET_SYMBOL);
3. 模擬畫面
#include欄位加入程式碼
#define SET_SYMBOL LV_SYMBOL_OK
#include欄位加入程式碼
#define SET_SYMBOL LV_SYMBOL_OK "Apply"
#include欄位加入程式碼
#define SET_SYMBOL LV_SYMBOL_OK LV_SYMBOL_WIFI LV_SYMBOL_PLAY
參考:https://docs.lvgl.io/latest/en/html/overview/font.html

沒有留言:
張貼留言