Allow values to get lower again
This commit is contained in:
parent
ee33eee44b
commit
b0bcba2e8a
|
@ -13,6 +13,7 @@ TEMP_COLOR = [64, 0, 0]
|
||||||
CPU_COLOR = [0, 16, 32]
|
CPU_COLOR = [0, 16, 32]
|
||||||
MAX_TEMP = 80
|
MAX_TEMP = 80
|
||||||
MIN_TEMP = 40
|
MIN_TEMP = 40
|
||||||
|
BLACK = [0, 0, 0]
|
||||||
|
|
||||||
|
|
||||||
class SystemStatus:
|
class SystemStatus:
|
||||||
|
@ -51,6 +52,8 @@ class SystemStatus:
|
||||||
for x in range(start, end):
|
for x in range(start, end):
|
||||||
for y in range(value):
|
for y in range(value):
|
||||||
self.hat.set_pixel(x, y, *color)
|
self.hat.set_pixel(x, y, *color)
|
||||||
|
for y in range(value, self.height):
|
||||||
|
self.hat.set_pixel(x, y, BLACK)
|
||||||
|
|
||||||
def getTempValue(self):
|
def getTempValue(self):
|
||||||
temp = psutil.sensors_temperatures()['cpu_thermal'][0].current
|
temp = psutil.sensors_temperatures()['cpu_thermal'][0].current
|
||||||
|
|
Loading…
Reference in New Issue