fdsfaf
Revision 1:209911ee18cd, committed 2018-05-05
- Comitter:
- glintligo
- Date:
- Sat May 05 14:11:09 2018 +0000
- Parent:
- 0:173936452e07
- Commit message:
- test
Changed in this revision
a4988.cpp | Show annotated file Show diff for this revision Revisions of this file |
a4988.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 173936452e07 -r 209911ee18cd a4988.cpp --- a/a4988.cpp Wed May 02 10:48:23 2018 +0000 +++ b/a4988.cpp Sat May 05 14:11:09 2018 +0000 @@ -16,7 +16,7 @@ direction = 1; } remain = _remain; - step_ticker.attach(this, &Stepper::step_control,1.0/frequency); + step_ticker.attach(this, &Stepper::step_control,0.5/frequency); } void Stepper::enable()
diff -r 173936452e07 -r 209911ee18cd a4988.h --- a/a4988.h Wed May 02 10:48:23 2018 +0000 +++ b/a4988.h Sat May 05 14:11:09 2018 +0000 @@ -3,8 +3,6 @@ #endif #include "mbed.h" -//class Stepper; -//typedef void (Stepper::*pClassFun)(); class Stepper { public: @@ -19,5 +17,4 @@ volatile int remain; Ticker step_ticker; void step_control(); - // pClassFun fun; };