예제 #1
0
파일: motor.py 프로젝트: diegohdorta/python
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()
예제 #2
0
파일: utils.py 프로젝트: diegohdorta/python
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()