RSeries astromech firmware
|
#include <core/SoftPot.h>
Encapsulate a soft potentiometer. Value is read once every cycle.
Example usage:
Public Member Functions | |
SoftPot (const byte pin) | |
Default Constructor. More... | |
virtual int | getValue () |
virtual void | setup () override |
Setup pin mode for analog read. More... | |
virtual void | animate () override |
Read the pot once through the loop. More... | |
Public Member Functions inherited from SetupEvent | |
SetupEvent () | |
Default Constructor. More... | |
Protected Attributes | |
byte | fPin |
int | fValue |
Additional Inherited Members | |
Static Public Member Functions inherited from SetupEvent | |
static void | ready () |
Calls setup() for each created AnimatedEvent subclass. More... | |
|
inline |
Default Constructor.
|
inlineoverridevirtual |
Read the pot once through the loop.
Implements AnimatedEvent.
|
inlinevirtual |
|
inlineoverridevirtual |
Setup pin mode for analog read.
Implements SetupEvent.
|
protected |
|
protected |