File Information
Library: IoT/Devices
Package: Devices
Header: IoT/Devices/RotaryEncoder.h
Description
A rotary encoder with an optional push button, based on the Counter interface.
Inheritance
Direct Base Classes: Counter
Member Summary
Member Functions: buttonState
Inherited Functions: count, getFeature, getPropertyBool, getPropertyDouble, getPropertyInt, getPropertyInt16, getPropertyInt64, getPropertyString, getPropertyTimestamp, hasFeature, hasProperty, reset, setFeature, setPropertyBool, setPropertyDouble, setPropertyInt, setPropertyInt16, setPropertyInt64, setPropertyString, setPropertyTimestamp
Constructors
RotaryEncoder
Creates the RotaryEncoder.
Destructor
~RotaryEncoder
~RotaryEncoder();
Destroys the RotaryEncoder.
Member Functions
buttonState
virtual bool buttonState() const = 0;
Returns the current state of the button.
Variables
buttonStateChanged
Poco::BasicEvent < const bool > buttonStateChanged;
Fired when the button has been pressed or released.