Lab 2 Part 11
Dependencies: mbed Stepper_Motor_X27168
Revision 0:44e929a29b18, committed 2021-02-11
- Comitter:
- glanier9
- Date:
- Thu Feb 11 16:07:39 2021 +0000
- Commit message:
- Final
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Stepper_Motor_X27168.lib Thu Feb 11 16:07:39 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/ECE-4180/code/Stepper_Motor_X27168/#c346170974bc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 11 16:07:39 2021 +0000 @@ -0,0 +1,19 @@ +#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); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 11 16:07:39 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file