ECE 4180 Lab 2 Part 11

Dependencies:   Stepper_Motor_X27168 mbed

Fork of ECE_4180_Lab_4 by Stepper Motor

Files at this revision

API Documentation at this revision

Comitter:
abraha2d
Date:
Tue Oct 09 00:50:58 2018 +0000
Parent:
0:71dc3ae7e2eb
Commit message:
Save point

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 71dc3ae7e2eb -r d36b1970cb2f main.cpp
--- a/main.cpp	Tue Oct 20 00:41:08 2015 +0000
+++ b/main.cpp	Tue Oct 09 00:50:58 2018 +0000
@@ -1,19 +1,21 @@
 #include "mbed.h"
 #include "StepperMotor_X27168.h"
 
-StepperMotor_X27168 smotor(p25, p26, p23, p22);
+StepperMotor_X27168 smotor(p23, p22, p24, p25);
 
-int main() {
+int main()
+{
+    while (1) {
+        smotor.step_position(180);
+        wait(0.5);
 
-    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);
+        smotor.step_position(100);
+        wait(0.5);
+
+        smotor.angle_position(270);
+        wait(0.5);
+
+        smotor.step_position(0);
+        wait(0.5);
+    }
 }
diff -r 71dc3ae7e2eb -r d36b1970cb2f mbed.bld
--- a/mbed.bld	Tue Oct 20 00:41:08 2015 +0000
+++ b/mbed.bld	Tue Oct 09 00:50:58 2018 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file