mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-10-09 20:18:36 +00:00
19 lines
275 B
C++
19 lines
275 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
enum class RotaryInputEvent : uint8_t {
|
|
None,
|
|
Next,
|
|
Prev,
|
|
};
|
|
|
|
class RotaryInput {
|
|
public:
|
|
virtual ~RotaryInput() = default;
|
|
|
|
virtual bool begin() = 0;
|
|
virtual RotaryInputEvent poll() = 0;
|
|
virtual bool isReady() const = 0;
|
|
};
|