Motor Drive UH
Fork of ArduinoMotorShield by
Revision 2:1dec2d3a899c, committed 2016-11-28
- Comitter:
- milosm
- Date:
- Mon Nov 28 11:35:22 2016 +0000
- Parent:
- 0:27f8679b31e5
- Commit message:
- this is a test for motor drive
Changed in this revision
ArduinoMotorShield.cpp | Show annotated file Show diff for this revision Revisions of this file |
ArduinoMotorShield.hpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 27f8679b31e5 -r 1dec2d3a899c ArduinoMotorShield.cpp --- a/ArduinoMotorShield.cpp Wed Feb 12 22:56:17 2014 +0000 +++ b/ArduinoMotorShield.cpp Mon Nov 28 11:35:22 2016 +0000 @@ -18,7 +18,7 @@ #include "ArduinoMotorShield.hpp" -#if defined TARGET_KL46Z +#if defined TARGET_KL25Z /* This assumes the presence of the cross-wiring on PWM B (see "Issues" at http://mbed.org/users/johnb/notebook/mutt-mbed-enabled-robot-vehicle/ ) @@ -26,14 +26,14 @@ #define MOTOR_A_PWM_PIN PTA12 #define MOTOR_B_PWM_PIN PTA5 -#define MOTOR_A_BRAKE_PIN PTD2 +#define MOTOR_A_BRAKE_PIN PTD5 #define MOTOR_B_BRAKE_PIN PTA13 #define MOTOR_A_CURRENT_PIN PTB0 #define MOTOR_B_CURRENT_PIN PTB1 -#define MOTOR_A_DIR_PIN PTD7 -#define MOTOR_B_DIR_PIN PTD5 +#define MOTOR_A_DIR_PIN PTD3 +#define MOTOR_B_DIR_PIN PTD1 #else
diff -r 27f8679b31e5 -r 1dec2d3a899c ArduinoMotorShield.hpp --- a/ArduinoMotorShield.hpp Wed Feb 12 22:56:17 2014 +0000 +++ b/ArduinoMotorShield.hpp Mon Nov 28 11:35:22 2016 +0000 @@ -36,11 +36,7 @@ digital outputs which interface to the motor drives Currently supports: - TARGET_KL46Z - Assumes the presence of the cross-wiring on PWM B - (see "Issues" at http://mbed.org/users/johnb/notebook/mutt-mbed-enabled-robot-vehicle/ ) - - @todo Support for bipolar stepper motor - @todo Support for other targets + TARGET_KL25Z - Assumes the presence of the cross-wiring on PWM B */ class ArduinoMotorShield {