2 #ifndef __PortServo_H__ 3 #define __PortServo_H__ 28 void begin(
int inPin);
37 inline bool IsActive()
const {
return this->pin > -1; }
45 inline GPIO_pin_t
GetDIOPin()
const {
return Arduino_to_GPIO_pin(this->pin); }
51 void MovePosition(
unsigned long inDuration,
int inEndPosition);
54 inline void MoveStop() { this->servo.detach(); }
59 #ifdef ACCESSORIES_PRINT_ACCESSORIES
void MovePosition(unsigned long inDuration, int inEndPosition)
GPIO_pin_t GetDIOPin() const
void beginByAccessory(int inStartingPosition)