import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
m_en = Pin(3,Pin.OUT)
m_step = Pin(5,Pin.OUT)
m_dir = Pin(6,Pin.OUT)
# enable motor
m_en.value( 0 )
time.sleep(0.5)
# direction
m_dir.value(1)
# avance 100 pas
for i in range(0,100):
m_step.value(1)
time.sleep(0.08)
m_step.value(0)
time.sleep(0.08)