mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			200 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			200 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from gpiozero import Robot, MCP3008
 | 
						|
from signal import pause
 | 
						|
 | 
						|
robot = Robot(left=(4, 14), right=(17, 18))
 | 
						|
 | 
						|
left = MCP3008(0)
 | 
						|
right = MCP3008(1)
 | 
						|
 | 
						|
robot.source = zip(left.values, right.values)
 | 
						|
 | 
						|
pause()
 |