mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Knew I'd missed some patches to the docs! This re-applies the aforementioned doc patches and also fixes the last RGBLED example (which was subtly incorrect in the original docs)
This commit is contained in:
@@ -11,7 +11,7 @@ Keep your script running
|
||||
|
||||
The following script looks like it should turn an LED on::
|
||||
|
||||
from gpiozero import led
|
||||
from gpiozero import LED
|
||||
|
||||
led = LED(17)
|
||||
led.on()
|
||||
@@ -23,7 +23,7 @@ briefly, then the script would end and it would turn off.
|
||||
The following file includes an intentional :func:`~signal.pause` to keep the
|
||||
script alive::
|
||||
|
||||
from gpiozero import led
|
||||
from gpiozero import LED
|
||||
from signal import pause
|
||||
|
||||
led = LED(17)
|
||||
|
||||
Reference in New Issue
Block a user