Control stepper motor
Fork of ArduinoMotorShield by
Revision 1:5f2774bf44a5, committed 2013-11-07
- Comitter:
- piniels
- Date:
- Thu Nov 07 12:44:13 2013 +0000
- Parent:
- 0:f4e71504732d
- Commit message:
- added enable pins to be enabled when stepper is running:-)
Changed in this revision
ArduinoMotorShield.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f4e71504732d -r 5f2774bf44a5 ArduinoMotorShield.cpp --- a/ArduinoMotorShield.cpp Tue Nov 05 20:28:36 2013 +0000 +++ b/ArduinoMotorShield.cpp Thu Nov 07 12:44:13 2013 +0000 @@ -107,6 +107,8 @@ if(startStop) { + this->_ENA_A = 1; //TODO: move. For enable the L298 in stepper mode + this->_ENA_B = 1; //TODO: move. For enable the L298 in stepper mode runTick.attach_us(this, &ArduinoMotorShield::runMotor, step_delay*1000); // the address of the function to be attached } else