mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-02-03 07:06:23 +00:00
Add more ledboard examples
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
from gpiozero import LEDBoard
|
||||
from time import sleep
|
||||
|
||||
leds = LEDBoard(5, 6, 13, 19, 26, pwm=True)
|
||||
leds = LEDBoard(5, 6, 13, 19, 26)
|
||||
|
||||
leds.value = (0.2, 0.4, 0.6, 0.8, 1.0)
|
||||
for led in leds:
|
||||
led.on()
|
||||
sleep(1)
|
||||
led.off()
|
||||
|
||||
Reference in New Issue
Block a user