Skip to content
Snippets Groups Projects
Commit bb04a1ef authored by rahix's avatar rahix
Browse files

fix(preload): Fix text in bme680 demo

Due to the new renderer, there is now enough space for longer messages.
Write out the full messages instead of "compressed" ones.
parent 5a59f95c
No related branches found
No related tags found
No related merge requests found
......@@ -26,32 +26,32 @@ def rate_iaq(iaq):
# "Headaches, additional neurotoxic effects possible"
# "Contamination needs to be identified; avoid presence in room and maximize ventilation"
# return (color.from_hex(0x663300), "Extrem. p.")
return (color.from_hex(0x663300), "Extremly p")
return (color.from_hex(0x663300), "Extremly polluted")
if iaq > 250:
# "Severely polluted"
# "More severe health issue possible if harmful VOC present"
# "Contamination should be identified if level is reached even
# w/o presence of people; maximize ventilation & reduce attendance"
# return (color.from_hex(0x99004c), "Severly p.")
return (color.from_hex(0x99004C), " Severly p")
return (color.from_hex(0x99004C), " Severly polluted")
if iaq > 200:
# "Heavily polluted"
# "Exposition might lead to effects like headache depending on type of VOCs"
# "Optimize ventilation"
# return (color.from_hex(0xff0000), "Heavily p.")
return (color.from_hex(0xFF0000), " Heavily p")
return (color.from_hex(0xFF0000), " Heavily polluted")
if iaq > 150:
# "Moderately polluted"
# "More significant irritation possible"
# "Increase ventilation with clean air"
# return (color.from_hex(0xff7e00), "Modera. p.")
return (color.from_hex(0xFF7E00), "Moderate p")
return (color.from_hex(0xFF7E00), "Moderate polluted")
if iaq > 100:
# "Lightly polluted"
# "Reduction of well-being possible"
# "Ventilation suggested"
# return (color.from_hex(0xffff00), "Lightly p.")
return (color.from_hex(0xFFFF00), "Lightly p")
return (color.from_hex(0xFFFF00), "Lightly polluted")
if iaq > 50:
# "Good"
# "No irritation or impact on well-being"
......@@ -130,7 +130,7 @@ def main():
elif data.iaq_accuracy == 1:
disp.print("IAQ: ", posy=64, font=2)
disp.print(
"Calibratin", posy=64, posx=45 + 5, font=2, fg=color.YELLOW
"Calibrating", posy=64, posx=45 + 5, font=2, fg=color.YELLOW
)
else:
if data.iaq_accuracy == 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment