mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Update recipes.rst
Small correction. LED to PWMLED in the Light Sensor 2nd example
This commit is contained in:
@@ -442,7 +442,7 @@ Run a function when the light changes::
|
|||||||
Or make a :class:`PWMLED` change brightness according to the detected light
|
Or make a :class:`PWMLED` change brightness according to the detected light
|
||||||
level::
|
level::
|
||||||
|
|
||||||
from gpiozero import LightSensor, LED
|
from gpiozero import LightSensor, PWMLED
|
||||||
from signal import pause
|
from signal import pause
|
||||||
|
|
||||||
sensor = LightSensor(18)
|
sensor = LightSensor(18)
|
||||||
|
|||||||
Reference in New Issue
Block a user