Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created Aug 30, 2020
Embed
What would you like to do?
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