Yuri T / Mbed 2 deprecated miniRobot

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
geovas
Date:
Fri Feb 27 10:39:33 2015 +0000
Parent:
3:6ec54d838b44
Commit message:
fully working source code!

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Feb 15 08:04:49 2015 +0000
+++ b/main.cpp	Fri Feb 27 10:39:33 2015 +0000
@@ -1,17 +1,17 @@
 #include "mbed.h"
 #include "echo_sensor.h" // echo sensor library
 
-#define LM1_ D3
-#define LM2_ D7
-#define RM1_ D6
-#define RM2_ D5
+#define LM1_ D10
+#define LM2_ D9
+#define RM1_ D5
+#define RM2_ D6
 #define RX_  PTC14
 #define TX_  PTC15
 
 PwmOut LM1(LM1_); // motors configuration
 PwmOut LM2(LM2_);
 PwmOut RM1(RM1_);
-PwmOut RM2(LM2_);
+PwmOut RM2(RM2_);
 
 Serial link(TX_, RX_);   // bluetooth serial port
 //Serial link(USBTX, USBRX); // usb serial port