示例#1
0
def SET_FET4(speed):
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_FET4SPD, speed)
示例#2
0
def STOP():
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_STOP)
示例#3
0
def SET_MOTORS(left, right):
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_MOTORL, left + 100)
    i2c.WRITECMDWAIT(CMD_MOTORR, right + 100)
示例#4
0
def SET_SPEED(speed):
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_USERSPEED, speed + 100)
示例#5
0
def SET_ANGLE(angle):
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_USERANGLE, angle + 100)
示例#6
0
def MOVEMODE(movemode):
    i2c.SETSLAVE(SLAVE_ADDRESS)
    i2c.WRITECMDWAIT(CMD_MOVEMODE, movemode)