RSeries astromech firmware
|
#include <ServoFeedback.h>
Provides an interface to read analog feedback from a set of servos.
Implements ServoFeedback reads servo feedback from a given set of analog pins.
Public Member Functions | |
ServoFeedback (const uint8_t *analogPins) | |
uint8_t | numServos () const |
virtual void | setup () override |
Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor. More... | |
virtual void | animate () override |
Subclasses must implement this function to run through a single frame of animation/activity. More... | |
uint8_t | getRaw (uint8_t servoNum) |
uint8_t | getDegrees (uint8_t servoNum) |
Public Member Functions inherited from SetupEvent | |
SetupEvent () | |
Default Constructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SetupEvent | |
static void | ready () |
Calls setup() for each created AnimatedEvent subclass. More... | |
|
inline |
|
inlineoverridevirtual |
Subclasses must implement this function to run through a single frame of animation/activity.
Subclasses should not call delay() or otherwise block.
Implements AnimatedEvent.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor.
Implements SetupEvent.