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.
Fork of Motor2 by
Diff: motor.h
- Revision:
- 11:87a73d40ce5b
- Parent:
- 10:b0e6051a6109
--- a/motor.h Sun Nov 03 11:41:40 2013 +0000
+++ b/motor.h Sun Oct 19 08:31:18 2014 +0000
@@ -21,7 +21,7 @@
* @param encA Encoder pin
* @param encB Encoder pin
*/
- Motor(PinName PWMpin, PCA9555 *ioExt, unsigned int dir1Pin, unsigned int dir2Pin, PinName encA, PinName encB);
+ Motor(PinName PWMpin, PCA9555 *ioExt, unsigned int dirPin, PinName encA, PinName encB);
/** Set speed setpoint
*
@@ -70,8 +70,7 @@
private:
PwmOut pwm;
PCA9555 *extIO;
- unsigned int dir1;
- unsigned int dir2;
+ unsigned int dir;
QED qed;
int currentSpeed;
