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:
- 3:b4ea47007781
- Parent:
- 2:f265e441bcd9
--- a/Motor.cpp Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.cpp Thu Nov 17 22:17:03 2022 +0000
@@ -25,7 +25,7 @@
#include "mbed.h"
Motor::Motor(PinName pwm, PinName fwd, PinName rev):
- _pwm(pwm), _fwd(fwd), _rev(rev) {
+ _pwm(pwm, true), _fwd(fwd), _rev(rev) {
// Set initial condition of PWM
_pwm.period(0.001);