from machine import Pin
from time import sleep_ms
step=Pin(3,Pin.OUT)
dir=Pin(2,Pin.OUT)
step.value(0)
while(1):
dir.value(1)
for x in range(200):
step.value(0)
step.value(1)
sleep_ms(5)
dir.value(0)
for x in range(200):
step.value(0)
step.value(1)
sleep_ms(2)