Upload files to "3-5 GPIO_光敏传感器/Hardware"
This commit is contained in:
15
3-5 GPIO_光敏传感器/Hardware/key.h
Normal file
15
3-5 GPIO_光敏传感器/Hardware/key.h
Normal 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
|
||||
Reference in New Issue
Block a user