完成了基础的中文和英文字符显示

This commit is contained in:
2026-03-08 21:30:46 +08:00
parent f45b571162
commit 9da748efb8
19 changed files with 5645 additions and 12905 deletions

31
src/Drv/key.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef __KEY_H__
#define __KEY_H__
#include "../../include/types.h"
#define KEY_U (0x02) // 上 32
#define KEY_D (0x40) // 下 16
#define KEY_L (0x10) // 左 8
#define KEY_R (0x08) // 右 4
#define KEY_ENT (0x20) // 确认 1
#define KEY_ESC (0x01) // 取消 2
#define KEY_F1 (0x04) // F1
#define KEY_F2 (0x80) // F2
#define KEY_ADD (0x82)
#define KEY_SUB (0x84)
#define KEY_NONE (0) // (无)
enum _KEY_VALID_FLAG_ { // 按键是否有效标志
EN_KEY_FLAG_NULL =0, // 无新按键
EN_KEY_FLAG_NEW, // 有新按键
EN_KEY_FLAG_SAM, // 采样过程中(未确定)
};
uint8_t Key_Read();
#endif