from machine import Pin
import utime
clockwise = 0
ms1 = Pin(6, Pin.OUT)
ms2 = Pin(7, Pin.OUT)
ms3 = Pin(8, Pin.OUT)
slep = Pin(27, Pin.OUT)
slep.high()
enable_pin = Pin(4, Pin.OUT)
enable_pin.high()
ms1.high()
ms2.low()
ms3.low()
direction = Pin(9, Pin.OUT)
while True:
if(clockwise == 0):
direction.high()
else:
direction.low()
delay(0.1)
print("hello")
clockwise = 1 - clockwise