from machine import Pin
import utime
step = Pin(16 , Pin.OUT)
DIR = Pin(17 , Pin.OUT )
ms1 = Pin(22 , Pin.OUT)
ms2 = Pin(21 , Pin.OUT)
ms3 = Pin(20 , Pin.OUT)
DIR.value(1) # Sens de rotation 1
ms1.value(1)
ms2.value(1)
ms3.value(0)
while True :
step.value(1)
utime.sleep_ms(100)
step.value(0)
utime.sleep_ms(100)