from machine import Pin,PWM,SoftI2C
import time
from ssd import SSD1306_I2C

dir=Pin(16,Pin.OUT)
dir.value(1)

MS1=Pin(19,Pin.OUT)
MS2=Pin(18,Pin.OUT)
MS3=Pin(5,Pin.OUT)
step=Pin(17,Pin.OUT)
#oled=SoftI2C(sda=Pin(12),scl=Pin(14))

def motor_step():
    MS1.value(1)
    MS2.value(0)
    MS3.value(0)
motor_step()

def Scc():
    for i in range(1000):
        step.value(1)
        step.value(0)
        time.sleep(0.05)




A4988