import machine
from machine import Pin
import time
paso = Pin(2,Pin.OUT)
dire = Pin(15,Pin.OUT)
while True:
dire.value(1)
paso.value(0)
time.sleep_ms(100)
paso.value(1)
time.sleep_ms(100)
while True:
dire.value(1)
paso.value(0)
pasos = 10
while pasos > 0:
pasos = pasos - 1
paso.value(1)
time.sleep_ms(5)
paso.value(0)
time.sleep_ms(5)
time.sleep(2)