a easy way to control stepper
Dependents: Ex_stepper Example_for_learning_easy
Diff: stepper.h
- Revision:
- 1:9a7c41e82ca5
- Parent:
- 0:7caa07ab8d77
- Child:
- 2:8f2ae2b5c552
diff -r 7caa07ab8d77 -r 9a7c41e82ca5 stepper.h --- a/stepper.h Fri Sep 07 13:52:14 2018 +0000 +++ b/stepper.h Fri Sep 07 14:09:04 2018 +0000 @@ -6,9 +6,9 @@ struct Stepper { - PinName step; - PinName dir; - PinName en; + DigitalOut step; + DigitalOut dir; + DigitalOut en; }; void rotate(Stepper stepper, double period, int pix);