For Hamza
Dependencies: StepperMotorUni StepperMotorUni_Hello mbed
Fork of StepperMotorUni_Hello by
Revision 1:80c512ccd0f2, committed 2015-04-22
- Comitter:
- okano
- Date:
- Wed Apr 22 03:26:01 2015 +0000
- Parent:
- 0:ae2206213141
- Child:
- 2:21d312d28d45
- Commit message:
- to include latest library
Changed in this revision
| StepperMotorUni.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 |
--- a/StepperMotorUni.lib Sun Jan 19 11:01:48 2014 +0000 +++ b/StepperMotorUni.lib Wed Apr 22 03:26:01 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/okano/code/StepperMotorUni/#5d0abdf92786 +http://mbed.org/users/okano/code/StepperMotorUni/#6909efe4c8ac
--- 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 );
}
}
