Lab 2 Part 11

Dependencies:   mbed Stepper_Motor_X27168

Committer:
glanier9
Date:
Thu Feb 11 16:07:39 2021 +0000
Revision:
0:44e929a29b18
Final

Who changed what in which revision?

UserRevisionLine numberNew contents of line
glanier9 0:44e929a29b18 1 #include "mbed.h"
glanier9 0:44e929a29b18 2 #include "StepperMotor_X27168.h"
glanier9 0:44e929a29b18 3
glanier9 0:44e929a29b18 4 StepperMotor_X27168 smotor(p25, p26, p23, p22);
glanier9 0:44e929a29b18 5
glanier9 0:44e929a29b18 6 int main() {
glanier9 0:44e929a29b18 7
glanier9 0:44e929a29b18 8 smotor.step_position(180);
glanier9 0:44e929a29b18 9 wait(0.5);
glanier9 0:44e929a29b18 10
glanier9 0:44e929a29b18 11 smotor.step_position(100);
glanier9 0:44e929a29b18 12 wait(0.5);
glanier9 0:44e929a29b18 13
glanier9 0:44e929a29b18 14 smotor.angle_position(270);
glanier9 0:44e929a29b18 15 wait(0.5);
glanier9 0:44e929a29b18 16
glanier9 0:44e929a29b18 17 smotor.step_position(0);
glanier9 0:44e929a29b18 18 wait(0.5);
glanier9 0:44e929a29b18 19 }