On EasyPIC5 you should set the PIC pins you are not using to outputs. Otherwise the pin will float and the LED attached to the that pin will indicate the pin voltage. The LED will probably go out if you set the pull-up resistor for that port to "pull-down" (see the jumpers) AND you need to turn the PIC internal pull-ups OFF and check what other peripherals might be connected to that pin.
But the easiest way is to just make unused pins into outputs, this is good practice with most PICs.
By the way;
Code:
DO
GPIO = 00010001
delay_ms (100)
GPIO = 00000000
DELAY_MS (10)
GPIO = 00000011
DELAY_MS (100)
GPIO = 00000000
DELAY_MS (10)
GPIO = 00000110
delay_ms (100)
GPIO = 00000000
DELAY_MS (10)
GPIO = 00010100
DELAY_MS (100)
GPIO = 00000000
DELAY_MS (10)
This won't work good for a stepper. Especially to get "high torque" ie 2 windings on, you should never have all windings with no power. I would remove the parts that turn the windings off, so it becomes like this;
Code:
DO
GPIO = 00010001
delay_ms (100)
GPIO = 00000011
DELAY_MS (100)
GPIO = 00000110
delay_ms (100)
GPIO = 00010100
DELAY_MS (100)