mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Merge pull request #163 from lurch/patch-1
Move LED example from GPIO2 to GPIO17
This commit is contained in:
		| @@ -20,7 +20,7 @@ with physical computing:: | ||||
|     from gpiozero import LED | ||||
|     from time import sleep | ||||
|  | ||||
|     led = LED(2) | ||||
|     led = LED(17) | ||||
|  | ||||
|     while True: | ||||
|         led.on() | ||||
| @@ -34,7 +34,7 @@ together:: | ||||
|     from gpiozero import LED, Button | ||||
|     from signal import pause | ||||
|  | ||||
|     led = LED(2) | ||||
|     led = LED(17) | ||||
|     button = Button(3) | ||||
|  | ||||
|     button.when_pressed = led.on | ||||
|   | ||||
		Reference in New Issue
	
	Block a user