stepper motor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- 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脉冲信号