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.
Diff: Motor.cpp
- Revision:
- 1:727b2172d97c
- Parent:
- 0:0f53faf3b186
diff -r 0f53faf3b186 -r 727b2172d97c Motor.cpp
--- a/Motor.cpp Tue Jan 19 11:29:43 2016 +0000
+++ b/Motor.cpp Tue Jan 19 11:53:16 2016 +0000
@@ -2,7 +2,7 @@
#include "mbed.h"
-motor::motor(PinName PWM, PinName fwd, PinName rev ,float period ,int select):
+MOTOR::MOTOR(PinName PWM, PinName fwd, PinName rev ,float period ,int select):
pwm(PWM), cw(fwd), ccw(rev)
{
pwm.period(period);
@@ -17,7 +17,7 @@
}
}
-void motor::speed(float speed)
+void MOTOR::speed(float speed)
{
if(mode == 0) {
cw = (speed > 0.0);