#ifndef KEYPAD_H_ #define KEYPAD_H_ #include #define K0 (1 << 0) #define K1 (1 << 1) #define K2 (1 << 2) #define K3 (1 << 3) #define K4 (1 << 4) #define K5 (1 << 5) #define K6 (1 << 6) #define K7 (1 << 7) #define K8 (1 << 8) #define K9 (1 << 9) #define KS (1 << 10) #define KP (1 << 11) void keypad_init(void); uint16_t keypad_get(void); uint8_t keypad_isdown(uint16_t); #endif // KEYPAD_H_