key.h 202 B

12345678910
  1. #ifndef __KEY_H
  2. #define __KEY_H
  3. #include "sys.h"
  4. #define KEY_BN GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_8)//读取按键0
  5. void KEY_Init(void);//IO初始化
  6. u8 KEY_Scan(u8); //按键扫描函数
  7. #endif