asdf

Dependencies:   stepper mbed

Committer:
Bilybill
Date:
Fri May 11 06:06:10 2018 +0000
Revision:
0:2e00b81c9137
afd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bilybill 0:2e00b81c9137 1 #include "mbed.h"
Bilybill 0:2e00b81c9137 2 #include "Stepper_motor.h"
Bilybill 0:2e00b81c9137 3 #include "robo.h"
Bilybill 0:2e00b81c9137 4 Serial Info(PB_10,PB_11);
Bilybill 0:2e00b81c9137 5 Ticker t1;
Bilybill 0:2e00b81c9137 6 Stepper_motor s1(PB_9,PB_0,PB_7,PA_11,10,16,1);
Bilybill 0:2e00b81c9137 7 Stepper_motor s2(PB_6,PA_7,PB_4,PA_15,10,16,1);
Bilybill 0:2e00b81c9137 8 Stepper_motor s3(PB_3,PA_6,PA_12,PB_1,10,16,1);
Bilybill 0:2e00b81c9137 9 int main()
Bilybill 0:2e00b81c9137 10 {
Bilybill 0:2e00b81c9137 11 s1.Init();
Bilybill 0:2e00b81c9137 12 s2.Init();
Bilybill 0:2e00b81c9137 13 s3.Init();//电机初始化
Bilybill 0:2e00b81c9137 14 }