mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Correction on Traffic Lights Alternative recipe
This commit is contained in:
		@@ -167,6 +167,8 @@ Alternatively::
 | 
			
		||||
    from time import sleep
 | 
			
		||||
    from signal import pause
 | 
			
		||||
 | 
			
		||||
    lights = TrafficLights(2, 3, 4)
 | 
			
		||||
 | 
			
		||||
    def traffic_light_sequence():
 | 
			
		||||
        while True:
 | 
			
		||||
            yield (0, 0, 1) # green
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user