aboutsummaryrefslogtreecommitdiffstats
path: root/include/keypad.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keypad.h')
-rw-r--r--include/keypad.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/keypad.h b/include/keypad.h
index 5263a0d..d55b867 100644
--- a/include/keypad.h
+++ b/include/keypad.h
@@ -23,6 +23,11 @@
#include <stdint.h>
+#define K_UP 0x18
+#define K_DOWN 0x19
+#define K_LEFT 0x1B
+#define K_RIGHT 0x1A
+
/**
* Initializes GPIO for the keypad.
* Starts a task to poll the buttons. Must be called before any keypad reading.