当前位置:网站首页>LVGL 8.2 LED
LVGL 8.2 LED
2022-07-04 14:35:00 【Fairy sword love】
establish 3 individual LED Example
static void lv_example_led_1(void)
{
/*Create a LED and switch it OFF*/
lv_obj_t* led1 = lv_led_create(lv_scr_act()); // establish LED object
lv_obj_align(led1, LV_ALIGN_CENTER, -80, 0); //LV_ALIGN_CENTER Alignment -80,0
lv_led_off(led1); // LED OFF
/*Copy the previous LED and set a brightness*/
lv_obj_t* led2 = lv_led_create(lv_scr_act()); // establish LED object
lv_obj_align(led2, LV_ALIGN_CENTER, 0, 0); //LV_ALIGN_CENTER Alignment 0,0
lv_led_set_brightness(led2, 150); // Set up LED brightness
lv_led_set_color(led2, lv_palette_main(LV_PALETTE_RED)); // Red
/*Copy the previous LED and switch it ON*/
lv_obj_t* led3 = lv_led_create(lv_scr_act()); // establish LED object
lv_obj_align(led3, LV_ALIGN_CENTER, 80, 0); //LV_ALIGN_CENTER Alignment 80,0
lv_led_on(led3); // LED ON
}
Running effect

- Will be the first 2 individual LED Lighten up
lv_led_on(led2);
- Running effect

边栏推荐
- 第十六章 字符串本地化和消息字典(二)
- Oppo find N2 product form first exposure: supplement all short boards
- Chapter 17 process memory
- Detailed analysis of pytorch's automatic derivation mechanism, pytorch's core magic
- Test process arrangement (2)
- Opencv3.2 and opencv2.4 installation
- 为什么国产手机用户换下一部手机时,都选择了iPhone?
- C # WPF realizes the real-time screen capture function of screen capture box
- 曝光一下阿里的工资待遇和职位级别
- C language book rental management system
猜你喜欢

An overview of 2D human posture estimation

(1)性能调优的标准和做好调优的正确姿势-有性能问题,上HeapDump性能社区!

(1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!

LVGL 8.2 text shadow

【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程

Data Lake (13): spark and iceberg integrate DDL operations

Practical puzzle solving | how to extract irregular ROI regions in opencv

数据中台概念

Compile oglpg-9th-edition source code with clion

Free, easy-to-use, powerful lightweight note taking software evaluation: drafts, apple memo, flomo, keep, flowus, agenda, sidenote, workflow
随机推荐
炒股网上开户安全吗?会不会被骗。
为什么国产手机用户换下一部手机时,都选择了iPhone?
SqlServer函数,存储过程的创建和使用
PyTorch的自动求导机制详细解析,PyTorch的核心魔法
es6模块化
Xcode abnormal pictures cause IPA packet size problems
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
Opencv3.2 and opencv2.4 installation
Popular framework: the use of glide
92. (cesium chapter) cesium building layering
leetcode:6110. 网格图中递增路径的数目【dfs + cache】
LVGL 8.2 List
A collection of classic papers on convolutional neural networks (deep learning classification)
Leetcode 61: rotating linked list
阿里被裁员工,找工作第N天,猎头又传来噩耗...
Digi XBee 3 rf: 4 protocols, 3 packages, 10 major functions
AI and Life Sciences
统计php程序运行时间及设置PHP最长运行时间
Practical puzzle solving | how to extract irregular ROI regions in opencv
[cloud native] how can I compete with this database?