Mitchell Hatfield / Mbed 2 deprecated Component_Test_Interface

Dependencies:   BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed

Revision:
6:d1594fd2ec5a
Parent:
5:e36e0538a903
Child:
9:5a0c4c6e39c7
--- a/Devices/Motor.cpp	Tue Sep 23 18:24:19 2014 +0000
+++ b/Devices/Motor.cpp	Tue Sep 23 23:42:32 2014 +0000
@@ -26,6 +26,8 @@
             this->motor = BridgeDriver::MOTOR_C;
     else if ((channel.compare("D") == 0) || (channel.compare("d") == 0))
             this->motor = BridgeDriver::MOTOR_D;
+
+    bridges.enablePwm(this->motor, 1);
 }
     
     
@@ -41,7 +43,7 @@
     lcd.setAddress(0,3);
     lcd.printf("func: %s  ", lineData.word[1]);
     wait(2);*/
-
+    
     //Order of Line: Local_Name, Function_Name, Param1, Param2, Param3,.......
     //char localname[15] = lineData.word[0]; //just for the sake of following the variable easily and understanding 
     string func = lineData.word[1];