STM32CubeMX-Keil_uVision5/FinalHomework/Core/Inc/MatrixKey.h

22 lines
261 B
C

#ifndef __MATRIXKEY_H
#define __MATRIXKEY_H
#include<stdint.h>
enum {State0=0, State1, State2};
#define NO_KEY 0xFF
#ifdef __cplusplus
extern "C" {
#endif
uint8_t MatrixKeyScan(void);
extern uint8_t const KeyTable[16];
#ifdef __cplusplus
}
#endif
#endif