mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Merge pull request #401 from waveform80/which-led-is-which
Annotate recipe with LED sys/class names
This commit is contained in:
@@ -1002,8 +1002,8 @@ Now you can control the LEDs with gpiozero like so::
|
|||||||
from gpiozero import LED
|
from gpiozero import LED
|
||||||
from signal import pause
|
from signal import pause
|
||||||
|
|
||||||
power = LED(35)
|
power = LED(35) # /sys/class/leds/led1
|
||||||
activity = LED(47)
|
activity = LED(47) # /sys/class/leds/led0
|
||||||
|
|
||||||
activity.blink()
|
activity.blink()
|
||||||
power.blink()
|
power.blink()
|
||||||
|
|||||||
Reference in New Issue
Block a user