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/Motor.h
- Revision:
- 22:c18f04d1dc49
- Parent:
- 8:2abfdbf5a3b8
- Child:
- 23:5238b046119b
--- a/Motor/Motor.h Wed Nov 16 23:48:46 2016 +0000 +++ b/Motor/Motor.h Fri Nov 18 02:47:59 2016 +0000 @@ -13,7 +13,11 @@ void step_clockwise(int steps); void step_anticlockwise(int steps); void step_anticlockwise(int steps, int wait); - void step_clockwise(int steps, int wait); + void step_clockwise(int steps, int wait); + void run (bool t); + + int wait; + bool dir; private: DigitalOut M1PWM; DigitalOut M2PWM; @@ -21,7 +25,7 @@ DigitalOut M2DIR; DigitalOut D2; - int default_wait; + }; #endif \ No newline at end of file