We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 810bc91 + c5c8a7c commit a8ed5e8Copy full SHA for a8ed5e8
examples/clue_temperature_humidity_monitor.py
@@ -2,8 +2,8 @@
2
from adafruit_clue import clue
3
4
# Set desired temperature range in degrees Celsius.
5
-min_temp = 24
6
-max_temp = 30
+min_temperature = 24
+max_temperature = 30
7
8
# Set desired humidity range in percent.
9
min_humidity = 20
@@ -22,10 +22,10 @@
22
humidity = clue.humidity
23
clue_display[3].text = "Temp: {:.1f} C".format(temperature)
24
clue_display[5].text = "Humi: {:.1f} %".format(humidity)
25
- if temperature < min_temp:
+ if temperature < min_temperature:
26
clue_display[3].color = clue.BLUE
27
alarm = True
28
- elif temperature > max_temp:
+ elif temperature > max_temperature:
29
clue_display[3].color = clue.RED
30
31
else:
0 commit comments