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 
13 {
14  public:
17 
18  protected:
23  inline void MoveRight(unsigned long inDuration = 0, int inSpeed = 0) { MoveLeft(inDuration, inSpeed); }
24 
30  inline ACC_STATE MoveToggle(unsigned long inDuration = 0, int inSpeed = 0) { MoveLeft(inDuration, inSpeed); return LEFT; }
31 
32 #ifdef ACCESSORIES_PRINT_ACCESSORIES
33  public:
37  void printAccessory();
38 #endif
39 };
40 #endif
41 
42 //-------------------------------------------------------------------
43 #endif
44 #endif
45 //-------------------------------------------------------------------
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)