Update recipes.rst

Small correction. LED to PWMLED in the Light Sensor 2nd example
This commit is contained in:
Alex Eames
2016-04-28 15:36:51 +01:00
parent 848d030ac9
commit c522d60e25

View File

@@ -442,7 +442,7 @@ Run a function when the light changes::
Or make a :class:`PWMLED` change brightness according to the detected light
level::
from gpiozero import LightSensor, LED
from gpiozero import LightSensor, PWMLED
from signal import pause
sensor = LightSensor(18)