from machine import Pin
from utime import sleep

step_p=Pin(17,Pin.OUT)
dir_p=Pin(16,Pin.OUT)

def move_stepper(step,direction):
    dir_p.value(direction)
    for i in range(step):
        step_p.value(0)
        sleep(0.01)
        step_p.value(1)
        sleep(0.01)

while 1:
    move_stepper(200,1)
    sleep(0.5)
    move_stepper(200,0)
    sleep(0.5)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
A4988