Dependencies:   Stepper_Motor_X27168 mbed

Files at this revision

API Documentation at this revision

Comitter:
jderemer3
Date:
Wed Mar 01 16:46:59 2017 +0000
Commit message:

Changed in this revision

Stepper_Motor_X27168.lib Show annotated file Show diff for this revision Revisions of this file
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 000000000000 -r ec09c38cf8d1 Stepper_Motor_X27168.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Stepper_Motor_X27168.lib	Wed Mar 01 16:46:59 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/ECE-4180/code/Stepper_Motor_X27168/#c346170974bc
diff -r 000000000000 -r ec09c38cf8d1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Mar 01 16:46:59 2017 +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
diff -r 000000000000 -r ec09c38cf8d1 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Mar 01 16:46:59 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d
\ No newline at end of file