def Motor(address,direction, velocity, position, loop): data = [direction,velocity,position,loop] # [Direction, Velocity, Step]. lenght = 1 # get length of Data. typeBoard = 52 # Type of Board. bus.put(address,data) resp = bus.get(address,lenght) print resp bus.deinit()
def motor(address, direction, velocity, position): data = [direction,velocity,position] print ("DADOS PARA COMANDAR MOTOR: ", data) bus.put(address,data) info = bus.get(address,1) print("Motor: ", info) bus.deinit()