Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MUTTv1 ProvaMotoreSeriale SerialComLED motore2 ... more
Revision 1:b6bd7c434ab5, committed 2014-12-19
- Comitter:
- emuboy
- Date:
- Fri Dec 19 12:28:29 2014 +0000
- Parent:
- 0:27f8679b31e5
- Commit message:
- Support for NUCLEO F401RE .
Changed in this revision
| ArduinoMotorShield.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 27f8679b31e5 -r b6bd7c434ab5 ArduinoMotorShield.cpp --- a/ArduinoMotorShield.cpp Wed Feb 12 22:56:17 2014 +0000 +++ b/ArduinoMotorShield.cpp Fri Dec 19 12:28:29 2014 +0000 @@ -35,6 +35,21 @@ #define MOTOR_A_DIR_PIN PTD7 #define MOTOR_B_DIR_PIN PTD5 +#elif defined TARGET_NUCLEO_F401RE + +#define MOTOR_A_PWM_PIN PB_3 +#define MOTOR_B_PWM_PIN PB_4 + +#define MOTOR_A_BRAKE_PIN PC_7 +#define MOTOR_B_BRAKE_PIN PA_9 + +#define MOTOR_A_CURRENT_PIN PA_0 +#define MOTOR_B_CURRENT_PIN PA_1 + +#define MOTOR_A_DIR_PIN PA_6 +#define MOTOR_B_DIR_PIN PA_5 + + #else "Error Message: This target's not currently supported! Please look in ArduinoMotorShield.cpp to add."

Arduino Motor Shield V3