Exemple #1
0
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()
Exemple #2
0
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()