Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created August 30, 2020 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffersGlass/1cbf07a64ec5d6c3cb9119ee32e25256 to your computer and use it in GitHub Desktop.
Save JeffersGlass/1cbf07a64ec5d6c3cb9119ee32e25256 to your computer and use it in GitHub Desktop.
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