9#ifndef INPUT_EVENTS_IENCODER_ADAPTER_H
10#define INPUT_EVENTS_IENCODER_ADAPTER_H
A lightweight adapter abstract class for encoders.
Definition: IEncoderAdapter.h:19
virtual int32_t getPosition(void)=0
Get the current position as reported by the encoder class.
virtual void setPosition(int32_t pos)=0
Set the a new position of the encoder. For some libraries this may only allow it to be set to 0.
virtual bool begin(void)=0
For compatibility with the Arduino library convention.
virtual ~IEncoderAdapter()=default
Destructor to ensure predictable behavious if derived classes are destroyed.