(ESP-IDF)LVGL XML 绑定
实现控件数值与显示数值的绑定 1、建立一个Component <component> <api> <prop name="subject" type="subject" default="volume" /> </api> <view width="100%" height="30%"
(ESP-IDF)LVGL XML 显示图片
嵌入图片 1、images中添加图片 2、globals.xml添加 <images> <!-- Add <file> or <data> tags here --> <data src_path="images/orange-flower.png" name="fl
(ESP-IDF)LVGL XML 布局
布局 本案例实现了 flex 布局与坐标布局 <screen> <styles> <style name="style_main" bg_color="0x00688a" /> </styles> <view flex_flow="column" height="100%"
(ESP-IDF)LVGL XML Components
额外 1、全局变量 globals.xml <globals> <api> <!-- Add <enumdefs> here --> </api> <consts> <!-- Add <px>, <int>, <color> etc here --> <color name="b
(ESP-IDF)LVGL 模拟器
CFLAGS += -I/opt/homebrew/include LDFLAGS += -L/opt/homebrew/lib
(ESP-IDF)LVGL 自定义对象加入编码器组
手动创建 3 个按钮,并且手动加入编码器组 #include <esp_log.h> #include "lvgl.h" #include "lvdev_knob.h" #include "lv_config_init.h" static const char *TAG = "lvpage_tes