asdf

Dependencies:   stepper mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Stepper_motor.h"
00003 #include "robo.h"
00004 Serial Info(PB_10,PB_11);
00005 Ticker t1;
00006 Stepper_motor s1(PB_9,PB_0,PB_7,PA_11,10,16,1);
00007 Stepper_motor s2(PB_6,PA_7,PB_4,PA_15,10,16,1);
00008 Stepper_motor s3(PB_3,PA_6,PA_12,PB_1,10,16,1);
00009 int main()
00010 {
00011     s1.Init();
00012     s2.Init();
00013     s3.Init();//电机初始化
00014 }