From b0bcba2e8ab5ccd26faf7f874a4a45a7afe3191c Mon Sep 17 00:00:00 2001
From: Mike Cifelli 1836280-mike-cifelli@users.noreply.gitlab.com
Date: Thu, 17 Jun 2021 10:14:56 -0400
Subject: [PATCH 1/1] Allow values to get lower again
system-status.py | 3 +++
1 file changed, 3 insertions(+)
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
--
2.39.5
text/plain
This content has been proxied by September (ba2dc).