From bb04a1ef9ff84f0a4393e37ba30318d4f4b53065 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Sat, 11 Dec 2021 20:22:07 +0100
Subject: [PATCH] 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.
---
 preload/apps/bme680_sensor_demo/__init__.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/preload/apps/bme680_sensor_demo/__init__.py b/preload/apps/bme680_sensor_demo/__init__.py
index 74ae7090..0988063d 100644
--- a/preload/apps/bme680_sensor_demo/__init__.py
+++ b/preload/apps/bme680_sensor_demo/__init__.py
@@ -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:
-- 
GitLab