summary refs log tree commit diff stats
path: root/firmware/src/inputs/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/inputs/button.cpp')
-rw-r--r--firmware/src/inputs/button.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/src/inputs/button.cpp b/firmware/src/inputs/button.cpp
new file mode 100644
index 0000000..ed02e32
--- /dev/null
+++ b/firmware/src/inputs/button.cpp
@@ -0,0 +1,18 @@
+#include "inputs/button.h"
+
+namespace inputs {
+
+Button::Button(uint8_t pin)
+    : pin { pin }
+{
+}
+
+void Button::init() {}
+
+bool Button::is_pressed()
+{
+    // TODO
+    return false;
+}
+
+}