Accessories
Arduino for motors and lights library.
AccessoryMotorOneWay.hpp
1 //-------------------------------------------------------------------
2 #ifndef __accessoryMotorOneWay_H__
3 #define __accessoryMotorOneWay_H__
4 //-------------------------------------------------------------------
5 
6 #include "AccessoryMotor.hpp"
7 
8 #ifndef NO_MOTOR
9 #ifndef NO_MOTORONEWAY
10 
34 {
35  public:
38 
39  protected:
44  inline void MoveRight(unsigned long inDuration = 0, int inSpeed = 0) { MoveLeft(inDuration, inSpeed); }
45 
51  inline ACC_STATE MoveToggle(unsigned long inDuration = 0, int inSpeed = 0) { MoveLeft(inDuration, inSpeed); return LEFT; }
52 
53 #ifdef ACCESSORIES_PRINT_ACCESSORIES
54  public:
58  void printAccessory();
59 #endif
60 };
61 #endif
62 
63 //-------------------------------------------------------------------
64 #endif
65 #endif
66 //-------------------------------------------------------------------
ACC_STATE MoveToggle(unsigned long inDuration = 0, int inSpeed = 0)
virtual void MoveLeft(unsigned long inDuration = 0, int inSpeed = 0)
void MoveRight(unsigned long inDuration = 0, int inSpeed = 0)