Upload files to "3-5 GPIO_光敏传感器/Hardware"

This commit is contained in:
2026-02-21 20:02:19 -05:00
parent e4332cafe8
commit 6a3b8de88d
5 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef __KEY_H
#define __KEY_H
void KeyInit(void);//init PB1 and PB11
/* PB1 按下弹起返回1 PB11 按下弹起返回2 */
uint8_t Key_GetNum(void);//获取键位值
#endif