A library for the Arduino motor shield board

Dependents:   HIDTympDeviceWithPIDController

Files at this revision

API Documentation at this revision

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
--- 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