mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add more advanced and remote recipes
This commit is contained in:
9
docs/examples/cpu_temperature_bar_graph.py
Normal file
9
docs/examples/cpu_temperature_bar_graph.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from gpiozero import LEDBarGraph, CPUTemperature
|
||||
from signal import pause
|
||||
|
||||
cpu = CPUTemperature(min_temp=50, max_temp=90)
|
||||
leds = LEDBarGraph(2, 3, 4, 5, 6, 7, 8, pwm=True)
|
||||
|
||||
leds.source = cpu.values
|
||||
|
||||
pause()
|
||||
Reference in New Issue
Block a user