|
@@ -43,10 +43,10 @@ def main():
|
|
temp.convert_temp()
|
|
temp.convert_temp()
|
|
value = temp.read_temp(sensor)
|
|
value = temp.read_temp(sensor)
|
|
print(f"Temperature: {round(value,2)}°C")
|
|
print(f"Temperature: {round(value,2)}°C")
|
|
- if value >= 35.0:
|
|
|
|
|
|
+ if value >= 30.0:
|
|
pixel[0] = (0,255,0)
|
|
pixel[0] = (0,255,0)
|
|
pixel.write()
|
|
pixel.write()
|
|
- elif value < 35.0 and value >= 30.0:
|
|
|
|
|
|
+ elif value < 30.0 and value >= 27.5:
|
|
pixel[0] = (255,255,0)
|
|
pixel[0] = (255,255,0)
|
|
pixel.write()
|
|
pixel.write()
|
|
else:
|
|
else:
|