aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2025-02-12 01:26:00 +0100
committerThomas Albers Raviola <thomas@thomaslabs.org>2025-02-12 01:26:00 +0100
commit2f3b2a30a42a20c0ba432e4cde1876521f127e8b (patch)
treeaeb6568d0bf68f69e472db96902e8441ae423380
parent7a8c601eec433f7c75d3291d64bb3d41fe50c8ae (diff)
Add key bits
-rw-r--r--include/hardware.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hardware.h b/include/hardware.h
index 7333328..ee495c3 100644
--- a/include/hardware.h
+++ b/include/hardware.h
@@ -85,5 +85,13 @@ __sfr __at(TFT_DATA) tft_data;
#define KEY3 0x10
#define KEY4 0x20
#define KEY5 0x40
+
+#define KEYA_BIT 0
+#define KEYB_BIT 1
+#define KEY1_BIT 2
+#define KEY2_BIT 3
+#define KEY3_BIT 4
+#define KEY4_BIT 5
+#define KEY5_BIT 6
#endif // ASSEMBLY
#endif // HARDWARE_H