feat(ge_interface): 添加按钮输入功能并优化定时器
- 新增 button4_4 按钮输入模块,实现 4x4 按钮矩阵的扫描和处理 - 添加 ge_timer 模块,提供基本的定时功能 - 优化 ge_render 模块,调整屏幕尺寸的类型 - 修复 init_lcd 函数的定义,使其返回类型为 void
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
#include "ge_interface.h"
|
||||
#include "main.h"
|
||||
|
||||
void ge_timer_sleepms(const ge_timer_t* timer, ge_time_t time) {
|
||||
(void) timer;
|
||||
HAL_Delay(time);
|
||||
}
|
||||
|
||||
|
||||
ge_timer_t ge_timer = {
|
||||
.time = 0,
|
||||
.func_getms = NULL,
|
||||
.func_getus = NULL,
|
||||
.func_sleepms = ge_timer_sleepms,
|
||||
.func_sleepus = NULL,
|
||||
};
|
Reference in New Issue
Block a user