beta1
Fork of a4998 by
Diff: a4988.h
- Revision:
- 2:57c57267b1da
- Parent:
- 1:209911ee18cd
- Child:
- 3:9e9f3cd7fff0
diff -r 209911ee18cd -r 57c57267b1da a4988.h --- a/a4988.h Sat May 05 14:11:09 2018 +0000 +++ b/a4988.h Mon Jul 16 23:53:54 2018 +0000 @@ -8,6 +8,8 @@ public: Stepper(PinName _en,PinName _stepPin, PinName _direction); void step(int dir, int frequency ,volatile int _remain); + void longrun(int dir,int frequency); + void stoprun(); void enable(); void disable(); private: @@ -17,4 +19,5 @@ volatile int remain; Ticker step_ticker; void step_control(); + void run_control(); };