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: mbed
Diff: Motor.h
- Revision:
- 2:538f0e257365
- Parent:
- 1:4040dba1ef4c
--- a/Motor.h Fri Aug 19 02:10:52 2016 +0000
+++ b/Motor.h Fri Oct 21 16:39:10 2016 +0000
@@ -28,7 +28,7 @@
* @param Speed PWM output -> EN1,2 on L293DNE
*
*/
- Motor (PinName Positive, PinName Negative,PinName Speed);
+ Motor (PinName Positive, PinName Negative);
/** control the direction of the movement
*
@@ -50,9 +50,8 @@
void Speed(int motor_speed);
protected:
- DigitalOut _positive;
- DigitalOut _negative;
- PwmOut _speed;
+ PwmOut _positive;
+ PwmOut _negative;
};
#endif