Program for driving unipolar stepper motor model RoHS 28BYJ-48 12 VDC. Motor can be driven in wave, full step, and half step modes in clockwise and anticlockwise directions.

Dependencies:   mbed

Revision:
2:f37d74a0e3e2
Parent:
1:4f62fc36c30d
Child:
5:f81d343c3d7a
--- a/main.cpp	Tue Oct 23 09:27:00 2012 +0000
+++ b/main.cpp	Wed Oct 24 13:02:53 2012 +0000
@@ -4,7 +4,7 @@
     DigitalOut gpo(PTB8);
     DigitalOut led(LED_RED);
 
-    while(1) {
+    while (true) {
         gpo = 1;
         led = 1; // Off
         wait(2);