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 time import sleep | ||||||
|     from signal import pause |     from signal import pause | ||||||
|  |  | ||||||
|  |     lights = TrafficLights(2, 3, 4) | ||||||
|  |  | ||||||
|     def traffic_light_sequence(): |     def traffic_light_sequence(): | ||||||
|         while True: |         while True: | ||||||
|             yield (0, 0, 1) # green |             yield (0, 0, 1) # green | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user