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: stepper.h
- Revision:
- 2:d9745be6c253
- Parent:
- 1:40e5ac1119a6
--- a/stepper.h Tue Jul 12 13:02:25 2022 -0400 +++ b/stepper.h Thu Aug 04 15:14:29 2022 -0400 @@ -5,7 +5,7 @@ class StepperMotor { public: StepperMotor(PinName enable_pin, PinName step_pin, PinName dir_pin, PinName ms1_pin, PinName ms2_pin, - PinName ms3_pin); + PinName ms3_pin, PinName sleep_pin); void step_positive(); void step_negative(); @@ -19,5 +19,6 @@ DigitalOut ms1; DigitalOut ms2; DigitalOut ms3; + DigitalOut sleep; int32_t count; }; \ No newline at end of file