mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Merge pull request #299 from raspitv/master
Correct LED -> PWMLED in recipes
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
|
||||
level::
|
||||
|
||||
from gpiozero import LightSensor, LED
|
||||
from gpiozero import LightSensor, PWMLED
|
||||
from signal import pause
|
||||
|
||||
sensor = LightSensor(18)
|
||||
|
||||
Reference in New Issue
Block a user