Keegan Hu
/
finalwarehouse
ddd
Fork of whouse by
Diff: main.cpp
- Revision:
- 0:2e00b81c9137
- Child:
- 2:ecf401a37aa3
diff -r 000000000000 -r 2e00b81c9137 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 11 06:06:10 2018 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include "Stepper_motor.h" +#include "robo.h" +Serial Info(PB_10,PB_11); +Ticker t1; +Stepper_motor s1(PB_9,PB_0,PB_7,PA_11,10,16,1); +Stepper_motor s2(PB_6,PA_7,PB_4,PA_15,10,16,1); +Stepper_motor s3(PB_3,PA_6,PA_12,PB_1,10,16,1); +int main() +{ + s1.Init(); + s2.Init(); + s3.Init();//电机初始化 +}