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.
Dependencies: BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed
Diff: Devices/Motor.cpp
- 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];