2 #ifndef __PortTwoPins_H__ 3 #define __PortTwoPins_H__ 33 void begin(
int inPinA,
int inPinB, PIN_TYPE inType);
38 inline bool IsActive()
const {
return this->pinA > -1; }
42 inline int GetPinA()
const {
if (
pinType < ANALOG)
return GPIO_to_Arduino_pin((GPIO_pin_t)this->pinA);
return this->
pinA; }
46 inline GPIO_pin_t
GetDIOPinA()
const {
if (
pinType < ANALOG)
return (GPIO_pin_t)this->
pinA;
return DP_INVALID; }
50 inline int GetPinB()
const {
if (
pinType < ANALOG)
return GPIO_to_Arduino_pin((GPIO_pin_t)this->pinB);
return this->
pinB; }
54 inline GPIO_pin_t
GetDIOPinB()
const {
if (
pinType < ANALOG)
return (GPIO_pin_t)this->
pinB;
return DP_INVALID; }
67 #ifdef ACCESSORIES_PRINT_ACCESSORIES 75 void Move(
int inValA,
int inValB);
void MoveRightDir(unsigned long inDuration = 0)
void MoveLeftDir(unsigned long inDuration = 0)
GPIO_pin_t GetDIOPinB() const
GPIO_pin_t GetDIOPinA() const