mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
10 lines
207 B
Python
10 lines
207 B
Python
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()
|