You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
407 B
C
25 lines
407 B
C
#ifndef KEYPAD_H_
|
|
#define KEYPAD_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#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_
|