当前位置:网站首页>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

边栏推荐
- Test process arrangement (3)
- 《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
- [MySQL from introduction to proficiency] [advanced chapter] (IV) MySQL permission management and control
- R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
- Solutions aux problèmes d'utilisation de l'au ou du povo 2 dans le riz rouge k20pro MIUI 12.5
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验3 按键实验(学习笔记)
- SqlServer函数,存储过程的创建和使用
- LVGL 8.2 Draw label with gradient color
- Digi restarts XBee Pro S2C production. Some differences need to be noted
- 92. (cesium chapter) cesium building layering
猜你喜欢

实战解惑 | OpenCV中如何提取不规则ROI区域

Gin integrated Alipay payment

LVGL 8.2 text shadow

实时数据仓库

Xcode abnormal pictures cause IPA packet size problems

Test evaluation of software testing
![[MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL](/img/58/a8dbed993921f372d04f7a1ee19679.png)
[MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL

开发中常见问题总结

Transplant tinyplay for imx6q development board QT system

【信息检索】分类和聚类的实验
随机推荐
關於miui12.5 紅米k20pro用au或者povo2出現問題的解决辦法
AI and Life Sciences
Digi restarts XBee Pro S2C production. Some differences need to be noted
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
C language achievement management system for middle school students
Some problems and ideas of data embedding point
Ruiji takeout notes
R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
PyTorch的自动求导机制详细解析,PyTorch的核心魔法
MySQL triggers
【云原生】我怎么会和这个数据库杠上了?
Codeforce:c. sum of substrings
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于GPIO)
潘多拉 IOT 开发板学习(RT-Thread)—— 实验3 按键实验(学习笔记)
Leetcode T49: 字母异位词分组
Leetcode T48:旋转图像
Leetcode 61: 旋转链表
失败率高达80%,企业数字化转型路上有哪些挑战?
Chapter 16 string localization and message Dictionary (2)
MySQL stored procedure exercise