mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Makes it much easier to test things - no copying'n'pasting just run the examples straight from the dir (after wiring stuff up)
8 lines
175 B
Python
8 lines
175 B
Python
from gpiozero import LEDBarGraph, MCP3008
|
|
from signal import pause
|
|
|
|
graph = LEDBarGraph(5, 6, 13, 19, 26, pwm=True)
|
|
pot = MCP3008(channel=0)
|
|
graph.source = pot.values
|
|
pause()
|