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)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
A4988