# 错误操作,此提交无法运行

This commit is contained in:
jxh
2025-03-20 16:36:10 +08:00
parent 8f5aa0e0a7
commit 55eb2bed54
8 changed files with 212 additions and 39 deletions

View File

@ -2,15 +2,19 @@
#ifndef __KEY_SCAN_H__
#define __KEY_SCAN_H__
#include "STC15.H"
#include "config.h"
// 按键引脚定义(与硬件布局一致)
sbit KEY1 = P3^0;
sbit KEY2 = P3^1;
sbit KEY3 = P3^2;
sbit KEY4 = P3^3;
#define KEY1 P21
#define KEY2 P22
#define KEY3 P23
#define KEY4 P24
// 函数声明
void Key_Init(void);
void Key_Scan(void);
uint8_t Get_KeyEvents(void);
void Key_Init (void);
void Key_Scan (void);
uint8_t Get_KeyEvents (void);
#endif