Skip to content

Change variable name to be consistent. #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 7, 2020
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