Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/clue_temperature_humidity_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from adafruit_clue import clue

# Set desired temperature range in degrees Celsius.
min_temp = 24
max_temp = 30
min_temperature = 24
max_temperature = 30

# Set desired humidity range in percent.
min_humidity = 20
Expand All @@ -22,10 +22,10 @@
humidity = clue.humidity
clue_display[3].text = "Temp: {:.1f} C".format(temperature)
clue_display[5].text = "Humi: {:.1f} %".format(humidity)
if temperature < min_temp:
if temperature < min_temperature:
clue_display[3].color = clue.BLUE
alarm = True
elif temperature > max_temp:
elif temperature > max_temperature:
clue_display[3].color = clue.RED
alarm = True
else:
Expand Down