feat: 完成按键、屏幕和蜂鸣器适配

This commit is contained in:
2024-01-31 17:20:09 +08:00
parent 7181da95de
commit 64e95d278c
31 changed files with 385 additions and 1338 deletions

View File

@@ -1,6 +1,6 @@
#include "page.h"
#include "by_rt_button.h"
#include "by_button.h"
PAGE_LIST pagelist[page_max];
static uint8_t page_busy = 0;
@@ -89,8 +89,8 @@ uint8_t Page_GetStatus(void)
*/
void Page_Run(void)
{
uint8_t temp_status = by_get_rb_status(); // 轮询旋钮状态
if(temp_status){
uint8_t temp_status = by_button_get_status(); // 轮询旋钮状态
if (temp_status) {
pagelist[now_page].EventCallback(temp_status);
}
@@ -118,7 +118,7 @@ void Page_Run(void)
}
/**
* @brief 页面初始化(注册,构建) ATTENTION 在此处添加新加入的页面
* @brief 页面初始化注册构建ATTENTION 在此处添加新加入的页面
*
*/
void Page_Init(void)