Exemplo n.º 1
0
 public Motor(Gadgeteer.Modules.GHIElectronics.MotorDriverL298 motorDriverL298, BreakOut breakOut)
 {
     this.motorDriverL298 = motorDriverL298;
     this.breakOut        = breakOut;
     this.lastAction      = 0;
     this.counter         = 0;
     this.moveTimer.Tick += new Gadgeteer.Timer.TickEventHandler(moveTimer_Tick);
     this.stopTimer.Tick += new Gadgeteer.Timer.TickEventHandler(stopTimer_Tick);
 }
Exemplo n.º 2
0
 public Motor(MotorDriverL298 motorDriverL298, BreakOut breakOut, MulticolorLED multicolorLED2)
 {
     // TODO: Complete member initialization
     this.motorDriverL298 = motorDriverL298;
     this.breakOut        = breakOut;
     this.multicolorLED2  = multicolorLED2;
     this.lastAction      = 0;
     this.counter         = 0;
     this.moveTimer.Tick += new Gadgeteer.Timer.TickEventHandler(moveTimer_Tick);
     this.stopTimer.Tick += new Gadgeteer.Timer.TickEventHandler(stopTimer_Tick);
 }