mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
275 B
18 lines
275 B
#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;
|
|
};
|
|
|