mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Merge pull request #153 from lurch/patch-1
Move LED example from GPIO2 to GPIO17
This commit is contained in:
@@ -13,7 +13,7 @@ The following script looks like it should turn an LED on::
|
|||||||
|
|
||||||
from gpiozero import led
|
from gpiozero import led
|
||||||
|
|
||||||
led = LED(2)
|
led = LED(17)
|
||||||
led.on()
|
led.on()
|
||||||
|
|
||||||
And it does, if you're using the Python (or IPython or IDLE) shell. However,
|
And it does, if you're using the Python (or IPython or IDLE) shell. However,
|
||||||
@@ -26,7 +26,7 @@ script alive::
|
|||||||
from gpiozero import led
|
from gpiozero import led
|
||||||
from signal import pause
|
from signal import pause
|
||||||
|
|
||||||
led = LED(2)
|
led = LED(17)
|
||||||
led.on()
|
led.on()
|
||||||
pause()
|
pause()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user