bugfix for keys

- initialize count, so that there is no initial keypress at powerup
- use int8_t instead of uint32_t to pass new key, since only 1 new key
used
This commit is contained in:
Jeff Wang
2019-04-01 01:55:47 -04:00
parent 8aec2ae134
commit f5d8d601a2
3 changed files with 212 additions and 198 deletions

View File

@ -21,6 +21,7 @@ const uint8_t* DebugGetKeys(void);
//prefer using GetNewKeys();
#define TOTAL_ROWS 5
extern uint8_t Keys[TOTAL_ROWS]; //only bottom nibbles get set
extern int8_t NewKeyPressed;
#endif /* SRC_KEY_H_ */