Lab 2 Part 11
Dependencies: mbed Stepper_Motor_X27168
main.cpp
- Committer:
- glanier9
- Date:
- 2021-02-11
- Revision:
- 0:44e929a29b18
File content as of revision 0:44e929a29b18:
#include "mbed.h" #include "StepperMotor_X27168.h" StepperMotor_X27168 smotor(p25, p26, p23, p22); int main() { smotor.step_position(180); wait(0.5); smotor.step_position(100); wait(0.5); smotor.angle_position(270); wait(0.5); smotor.step_position(0); wait(0.5); }