wpi-32u4-library
|
Base class class for servos. More...
#include <servo32u4.h>
Inherited by Servo32U4Pin12, Servo32U4Pin13, Servo32U4Pin5, and Servo32U4Pin6.
Public Member Functions | |
virtual void | attach (void)=0 |
virtual void | detach (void)=0 |
virtual void | writeMicroseconds (uint16_t microseconds)=0 |
uint16_t | setMinMaxMicroseconds (uint16_t min, uint16_t max) |
Protected Attributes | |
uint16_t | usMin = 1000 |
uint16_t | usMax = 2000 |
uint8_t | feedbackPin = -1 |
bool | isAttached = false |
Base class class for servos.
Each derived class controls a specific pin (obvious from the name).
Legacy Servo32U4 is #defined for pin 5, which is how it was used previously.
Defaults to a range of 1000 - 2000 us, but can be customized.
Definition at line 39 of file servo32u4.h.
|
pure virtual |
Implemented in Servo32U4Pin5, Servo32U4Pin6, Servo32U4Pin13, and Servo32U4Pin12.
|
pure virtual |
Implemented in Servo32U4Pin5, Servo32U4Pin6, Servo32U4Pin13, and Servo32U4Pin12.
uint16_t Servo32U4Base::setMinMaxMicroseconds | ( | uint16_t | min, |
uint16_t | max | ||
) |
Definition at line 3 of file servo32u4.cpp.
|
pure virtual |
Implemented in Servo32U4Pin5, Servo32U4Pin6, Servo32U4Pin13, and Servo32U4Pin12.
|
protected |
Definition at line 45 of file servo32u4.h.
|
protected |
Definition at line 46 of file servo32u4.h.
Referenced by Servo32U4Pin5::attach(), Servo32U4Pin6::attach(), Servo32U4Pin13::attach(), Servo32U4Pin12::attach(), Servo32U4Pin5::detach(), Servo32U4Pin6::detach(), Servo32U4Pin13::detach(), Servo32U4Pin12::detach(), Servo32U4Pin5::writeMicroseconds(), Servo32U4Pin6::writeMicroseconds(), Servo32U4Pin13::writeMicroseconds(), and Servo32U4Pin12::writeMicroseconds().
|
protected |
Definition at line 43 of file servo32u4.h.
Referenced by setMinMaxMicroseconds(), Servo32U4Pin5::writeMicroseconds(), Servo32U4Pin6::writeMicroseconds(), Servo32U4Pin13::writeMicroseconds(), and Servo32U4Pin12::writeMicroseconds().
|
protected |
Definition at line 42 of file servo32u4.h.
Referenced by setMinMaxMicroseconds(), Servo32U4Pin5::writeMicroseconds(), Servo32U4Pin6::writeMicroseconds(), Servo32U4Pin13::writeMicroseconds(), and Servo32U4Pin12::writeMicroseconds().