mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Makes it much easier to test things - no copying'n'pasting just run the examples straight from the dir (after wiring stuff up)
16 lines
213 B
Python
16 lines
213 B
Python
from gpiozero import LEDBoard
|
|
from time import sleep
|
|
from signal import pause
|
|
|
|
leds = LEDBoard(5, 6, 13, 19, 26)
|
|
|
|
leds.on()
|
|
sleep(1)
|
|
leds.off()
|
|
sleep(1)
|
|
leds.value = (1, 0, 1, 0, 1)
|
|
sleep(1)
|
|
leds.blink()
|
|
|
|
pause()
|