diff options
author | Starfall <us@starfall.systems> | 2025-03-04 12:34:48 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2025-03-04 12:34:48 -0600 |
commit | 5a4bf238055478d8ec53b5ff59f1f150cfc6a01e (patch) | |
tree | e9f7761ad8eb4cd10eeed197cb02e16234a3eb9b /input.h |
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 13 |
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(); |