summary refs log tree commit diff
path: root/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'input.h')
-rw-r--r--input.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/input.h b/input.h
new file mode 100644
index 0000000..a772835
--- /dev/null
+++ b/input.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <Arduino.h>
+#include <Encoder.h>
+
+void setup_input();
+
+uint32_t read_knob();
+
+#define EVENT_NONE 0
+#define EVENT_CLICK 1
+#define EVENT_HOLD 2
+uint8_t read_button();