def SET_FET4(speed): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_FET4SPD, speed)
def STOP(): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_STOP)
def SET_MOTORS(left, right): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_MOTORL, left + 100) i2c.WRITECMDWAIT(CMD_MOTORR, right + 100)
def SET_SPEED(speed): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_USERSPEED, speed + 100)
def SET_ANGLE(angle): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_USERANGLE, angle + 100)
def MOVEMODE(movemode): i2c.SETSLAVE(SLAVE_ADDRESS) i2c.WRITECMDWAIT(CMD_MOVEMODE, movemode)