Tedd OKANO
/
unipolar_stepper_motor_operation_sample
Diff: main.cpp
- Revision:
- 2:e9fbf2c17789
- Parent:
- 1:e49f906a4dbd
- Child:
- 3:db008e5009d0
--- a/main.cpp Sat Jan 11 01:29:44 2014 +0000 +++ b/main.cpp Sat Jan 11 01:31:36 2014 +0000 @@ -1,14 +1,14 @@ // stepper motor operation sample (learn it step by step). // showing how to control a unipolar stepper motor by mbed digital output ports. // -// version 0-1 : Speed changed +// version 1 : Output pulses to p23, p24, p25 and p26 ports #include "mbed.h" -DigitalOut motor_out0( LED1 ); -DigitalOut motor_out1( LED2 ); -DigitalOut motor_out2( LED3 ); -DigitalOut motor_out3( LED4 ); +DigitalOut motor_out0( p26 ); +DigitalOut motor_out1( p25 ); +DigitalOut motor_out2( p24 ); +DigitalOut motor_out3( p23 ); #define INTERVAL 0.01