summary refs log tree commit diff stats
path: root/firmware/include/inputs/button.h
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-03-19 19:54:25 +0100
committerChristian Krinitsin <mail@krinitsin.com>2025-03-19 19:54:25 +0100
commit6b3fb653f8b342d8ecfc093a000e9f6fa479c644 (patch)
tree00ed5c437e673de04b114d545bd00a8c9794986a /firmware/include/inputs/button.h
parent4de52a94442014581a5e2f944eb17c578005afef (diff)
downloadtetris-console-6b3fb653f8b342d8ecfc093a000e9f6fa479c644.tar.gz
tetris-console-6b3fb653f8b342d8ecfc093a000e9f6fa479c644.zip
add input header and rough structure
Diffstat (limited to 'firmware/include/inputs/button.h')
-rw-r--r--firmware/include/inputs/button.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/include/inputs/button.h b/firmware/include/inputs/button.h
new file mode 100644
index 0000000..c3530ae
--- /dev/null
+++ b/firmware/include/inputs/button.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <cstdint>
+
+namespace inputs {
+
+class Button {
+public:
+    Button(uint8_t pin);
+
+    bool is_pressed();
+
+private:
+};
+
+}