-
-
Save JeffersGlass/1cbf07a64ec5d6c3cb9119ee32e25256 to your computer and use it in GitHub Desktop.
This file contains 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 gpiozero import LEDBarGraph | |
from time import sleep | |
graph = LEDBarGraph(20, 21, 12) | |
graph.value = 1 | |
sleep(1) | |
graph.value = .5 | |
sleep(1) | |
graph.value = 0 | |
graph.value = 1 | |
for i in range(10, 1, -1): | |
graph.value = i/10 | |
sleep(.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment