feat(sim/oled): 移除未使用的头文件 "graphics.h" 和 "conio.h"

 feat(lib/CMakeLists.txt): 添加 LUI 库支持

 feat(lib/utils/inc/argpase.h): 引入 "stdbool.h" 以支持布尔类型

 feat(sim/display/sim_display.cpp): 重新引入 "graphics.h" 和 "conio.h" 以修复依赖

 feat(sim/lvgl/lv_port_indev.cpp): 移除未使用的头文件 "graphics.h" 和 "easyx.h"

 feat(main.c): 添加 LUI 库支持以增强功能

 feat(lib/lui/lame_ui.c): 新增 LUI 库实现以支持 UI 组件
This commit is contained in:
JiXieShi
2024-12-19 22:49:08 +08:00
parent fd68396b30
commit 040b9be6b9
14 changed files with 10347 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ set(LIBRARIES
HW_LIB_Oled oled oled/inc
HW_LIB_Tft tft tft/inc
HW_LIB_Flash flash flash/inc
HW_LIB_Lui lui lui/inc
)
# 循环浏览库列表以创建它们

View File

@@ -6,7 +6,7 @@ extern "C" {
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#define KEY_TICKS_INTERVAL 5 // 定时器间隔时间,单位为毫秒
#define DEBOUNCE_TICKS 0 // 按键去抖动计数阈值最大为70 ~ 7
#define SHORT_TICKS (300 / KEY_TICKS_INTERVAL) // 短按阈值,单位为定时器间隔的倍数

3948
lib/lui/inc/lame_ui.h Normal file

File diff suppressed because it is too large Load Diff

6376
lib/lui/lame_ui.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "stdbool.h"
#include "stdint.h"

View File

@@ -3,6 +3,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "stdbool.h"
typedef char OptId;
typedef struct Option {

View File

@@ -5,7 +5,6 @@
#include <ctime>
#include <stdint.h>
#include <cstdlib>
#include <syncstream>
#include "tool.h"
float Mapping(float val, float I_Min, float I_Max, float O_Min, float O_Max) {