diff --git a/system-status.py b/system-status.py index be84a2e..888af93 100644 --- a/system-status.py +++ b/system-status.py @@ -13,6 +13,7 @@ TEMP_COLOR = [64, 0, 0] CPU_COLOR = [0, 16, 32] MAX_TEMP = 80 MIN_TEMP = 40 +BLACK = [0, 0, 0] class SystemStatus: @@ -51,6 +52,8 @@ class SystemStatus: for x in range(start, end): for y in range(value): self.hat.set_pixel(x, y, *color) + for y in range(value, self.height): + self.hat.set_pixel(x, y, BLACK) def getTempValue(self): temp = psutil.sensors_temperatures()['cpu_thermal'][0].current