Add more ledboard examples

This commit is contained in:
Ben Nuttall
2017-07-26 14:12:15 +01:00
parent 9af06fbfa3
commit 47e437bfad
7 changed files with 100 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
from gpiozero import LEDBoard
from time import sleep
leds = LEDBoard(red=LEDBoard(top=2, bottom=3), green=LEDBoard(top=4, bottom=5))
leds.red.on() ## both reds on
sleep(1)
leds.green.on() # both greens on
sleep(1)
leds.off() # all off
sleep(1)
leds.red.top.on() # top red on
sleep(1)
leds.green.bottom.on() # bottom green on
sleep(1)