For Hamza

Dependencies:   StepperMotorUni StepperMotorUni_Hello mbed

Fork of StepperMotorUni_Hello by Tedd OKANO

Revision:
1:80c512ccd0f2
Parent:
0:ae2206213141
Child:
2:21d312d28d45
--- a/main.cpp	Sun Jan 19 11:01:48 2014 +0000
+++ b/main.cpp	Wed Apr 22 03:26:01 2015 +0000
@@ -14,13 +14,14 @@
 
 int main()
 {
-    motor.set_pps( 50 );
+    motor.set_operation_phase_mode( StepperMotorUni::HALFSTEP );
+    motor.set_pps( 200 );
 
     while ( 1 ) {
-        motor.move_steps( 24 );
+        motor.move_steps( 48 );
         wait( 1 );
 
-        motor.move_steps( -24 );
+        motor.move_steps( -48 );
         wait( 1 );
     }
 }