Thin wrapper around the pins used to control the Arduino motor shield

Dependents:   MUTTv1 ProvaMotoreSeriale SerialComLED motore2 ... more

For an example of using this library, see MUTTv1:

Import programMUTTv1

First (and very, very simple) controller program for the MUTT. See http://mbed.org/users/johnb/notebook/mutt-mbed-enabled-robot-vehicle/

Files at this revision

API Documentation at this revision

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