Last active
January 7, 2016 12:59
-
-
Save bennuttall/6b6426202beea5c979be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gpizero import PiLiter | |
| from time import sleep | |
| lite = PiLiter() | |
| while True: | |
| lite.on() | |
| sleep(1) | |
| lite.off() | |
| sleep(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gpizero import PiLiter | |
| from time import sleep | |
| lite = PiLiter() | |
| # control leds by number 0 to 6 | |
| lite.leds[0].on() | |
| lite.leds[2].on() | |
| lite.leds[4].on() | |
| lite.leds[6].on() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gpizero import PiLiter | |
| from time import sleep | |
| lite = PiLiter() | |
| for led in lite.leds: | |
| led.on() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment