from machine import Pin
from time import sleep

motorA1 = Pin(0, Pin.OUT)
motorA2 = Pin(1, Pin.OUT)
motorA3 = Pin(2, Pin.OUT)
motorB1 = Pin(3, Pin.OUT)
motorB2 = Pin(4, Pin.OUT)
motorB3 = Pin(5, Pin.OUT)
led= Pin("LED", Pin.OUT)


def go_straight() :
    motorA1(1)
    motorA2(0)
    motorA3(1)
    
    motorB1(0)
    motorB2(1)
    motorB3(1)
def stop() :
    motorA1(1)
    motorA2(1)
    motorA3(1)
    
    motorB1(1)
    motorB2(1)
    motorB3(1)
    
def go_back():
    motorA1(1)
    motorA2(1)
    motorA3(0)
    
    motorB1(1)
    motorB2(0)
    motorB3(1)
    
def go_left():
    motorA1(1)
    motorA2(0)
    motorA3(1)
    
    motorB1(1)
    motorB2(0)
    motorB3(1)
    
def go_right():
    motorA1(1)
    motorA2(1)
    motorA3(0)
    
    motorB1(0)
    motorB2(1)
    motorB3(1)
    
    

led.on()
go_left()
