// MicroBoard program // 2-2 phase, 4-leads bipolar stepper motor test // One set of inputs of L293D is connected to Pin 8 & 9, and the // other set is connected to Pin 10 & 11 // The 2 sets of coils of the motor are connected to the outputs of L293D separately #define STEP 100 // speed! smaller the number the faster the rotation main() { writes("step", 500); loop { pinlow(8); pinhigh(9); delay(STEP); pinlow(10); pinhigh(11); delay(STEP); pinlow(9); pinhigh(8); delay(STEP); pinlow(11); pinhigh(10); delay(STEP); } }