def setup ( ) : print ( "Simple drive" ) board . set_pin_mode ( L_CTRL_1 , Constants . OUTPUT ) board . set_pin_mode ( L_CTRL_2 , Constants . OUTPUT ) board . set_pin_mode ( PWM_L , Constants . PWM ) board . set_pin_mode ( R_CTRL_1 , Constants . OUTPUT ) board . set_pin_mode ( R_CTRL_2 , Constants . OUTPUT ) board . set_pin_mode ( PWM_R , Constants . PWM )
how to activate a pin in python
Setup pins
def setup():
    """Setup pins"""
    print("Simple drive")
    board.set_pin_mode(L_CTRL_1, Constants.OUTPUT)
    board.set_pin_mode(L_CTRL_2, Constants.OUTPUT)
    board.set_pin_mode(PWM_L, Constants.PWM)
    board.set_pin_mode(R_CTRL_1, Constants.OUTPUT)
    board.set_pin_mode(R_CTRL_2, Constants.OUTPUT)
    board.set_pin_mode(PWM_R, Constants.PWM)