stc_rpncalc/src/key.h

36 lines
517 B
C
Raw Normal View History

2019-03-20 08:21:11 +01:00
/*
* key.h
*
* Created on: Mar 20, 2019
*/
#ifndef SRC_KEY_H_
#define SRC_KEY_H_
#ifdef __cplusplus
extern "C" {
#endif
//#define DEBUG_KEYS
2019-03-20 08:21:11 +01:00
void KeyInit(void);
void KeyScan(void);
#ifdef DEBUG_KEYS
const uint8_t* DebugGetKeys(void);
#endif
//definition included for determining if multiple keys are pressed
//prefer using GetNewKeys();
#define TOTAL_ROWS 5
extern uint8_t Keys[TOTAL_ROWS]; //only bottom nibbles get set
extern int8_t NewKeyPressed;
2019-03-20 08:21:11 +01:00
#ifdef __cplusplus
}
#endif
2019-03-20 08:21:11 +01:00
#endif /* SRC_KEY_H_ */