Re-apply #120 and #117 to rest-docs

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:
Dave Jones
2016-01-31 19:28:35 +00:00
parent 96a9112884
commit 44e943b322
2 changed files with 44 additions and 8 deletions

View File

@@ -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)