2 #ifndef __PortOnePin_H__ 3 #define __PortOnePin_H__ 27 void begin(
int inPin, PIN_TYPE inType);
39 inline bool IsActive()
const {
return this->pin > -1; }
43 inline int GetPin()
const {
if (this->
pinType < ANALOG)
return GPIO_to_Arduino_pin((GPIO_pin_t)this->pin);
return this->
pin; }
47 inline GPIO_pin_t
GetDIOPin()
const {
if (this->
pinType >= ANALOG)
return (GPIO_pin_t)this->
pin;
return DP_INVALID; }
60 #ifdef ACCESSORIES_PRINT_ACCESSORIES
void MoveRightDir(unsigned long inDuration = 0)
void MoveLeftDir(unsigned long inDuration = 0)
GPIO_pin_t GetDIOPin() const
int SetSpeed(int inSpeed)