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.
Dependents: ASEE-2014 frdm_Wall
Fork of Motor by
Diff: Motor.h
- Revision:
- 3:7f1fd2d62c72
- Parent:
- 2:f265e441bcd9
--- a/Motor.h Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.h Thu Feb 27 01:40:41 2014 +0000
@@ -34,11 +34,10 @@
/** Create a motor control interface
*
- * @param pwm A PwmOut pin, driving the H-bridge enable line to control the speed
- * @param fwd A DigitalOut, set high when the motor should go forward
- * @param rev A DigitalOut, set high when the motor should go backwards
+ * @param fwd A PwmOut pin, set value when the motor should go forward
+ * @param rev A PwmOut pin, set value when the motor should go backwards
*/
- Motor(PinName pwm, PinName fwd, PinName rev);
+ Motor(PinName fwd, PinName rev);
/** Set the speed of the motor
*
@@ -47,10 +46,8 @@
void speed(float speed);
protected:
- PwmOut _pwm;
- DigitalOut _fwd;
- DigitalOut _rev;
-
+ PwmOut _fwd;
+ PwmOut _rev;
};
#endif
