from machine import Pin
import time
pinEnable=machine.Pin(5,machine.Pin.OUT)
pinStep=machine.Pin(4,machine.Pin.OUT)
pinDir=machine.Pin(0,machine.Pin.OUT)
pinEnable=0
pasosMotor=200
while True:
pinDir.off()
for i in range(1,pasosMotor):
pinStep.on()
time.sleep_ms(10)
pinStep.off()
time.sleep_ms(10)
pinDir.on()
for i in range(1,pasosMotor):
pinStep.on()
time.sleep_ms(10)
pinStep.off()
time.sleep_ms(10)