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.
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 |
--- 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()
--- 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; };