diff options
| author | Nikita Kostovsky <luntik2012@gmail.com> | 2024-11-24 19:54:52 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <luntik2012@gmail.com> | 2024-11-24 19:54:52 +0100 |
| commit | 53979d9d26c5bb51e86e70eb9c3a998bc50f713c (patch) | |
| tree | 4ab3fb55d37db89a8f0e61135efc69d89d2e4f11 /rotaryencoder.h | |
| parent | e21934bca43b8dc68bbcf37e2ad1da6bd5ac6db6 (diff) | |
implement printer controls; implement calibration data collection
Diffstat (limited to 'rotaryencoder.h')
| -rw-r--r-- | rotaryencoder.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/rotaryencoder.h b/rotaryencoder.h index f2f9b76..c0c39d8 100644 --- a/rotaryencoder.h +++ b/rotaryencoder.h @@ -2,11 +2,19 @@ #include <cstdint> -class rotaryencoder +// TODO: delete singleton functionality +class RotaryEncoder final { public: - rotaryencoder(); + RotaryEncoder(); + ~RotaryEncoder(); public: - int64_t position() const; + static RotaryEncoder* instance(); + +public: + int32_t position() const; + +private: + static inline RotaryEncoder* m_self { nullptr }; }; |
