IoAbstraction
Public Member Functions | List of all members
EncoderListener Class Referenceabstract

#include <SwitchInput.h>

Public Member Functions

virtual void encoderHasChanged (int newValue)=0
 

Detailed Description

Optionally you can extend your class from EncoderListener and then receive the callbacks in the encoderHasChanged method instead of using a functional callback.

Member Function Documentation

◆ encoderHasChanged()

virtual void EncoderListener::encoderHasChanged ( int  newValue)
pure virtual

Called when the encoder has changed to a new value, you must implement this method in the class that extends from EncoderListener.

Parameters
newValuethe new value of the encoder.

The documentation for this class was generated from the following file: