YX ZHANG
/
Ex_Stepper
stepper motor
Revision 2:c944fc6cdfb7, committed 2018-03-19
- Comitter:
- zhangyx
- Date:
- Mon Mar 19 03:34:20 2018 +0000
- Parent:
- 1:6d4a62f98351
- Commit message:
- pin changed
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6d4a62f98351 -r c944fc6cdfb7 main.cpp --- a/main.cpp Wed Oct 11 06:19:41 2017 +0000 +++ b/main.cpp Mon Mar 19 03:34:20 2018 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" Ticker ticker_step; -DigitalOut step(PB_0), dir(PB_1), en(PA_7); +DigitalOut step(PB_0), dir(PB_1), en(PC_13); volatile int remain; void toggle_step() { //产生STEP脉冲信号