Allow values to get lower again

This commit is contained in:
Mike Cifelli 2021-06-17 10:14:56 -04:00
parent ee33eee44b
commit b0bcba2e8a
1 changed files with 3 additions and 0 deletions

View File

@ -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