Skip to content

Commit 38001d4

Browse files
committed
Fix LCD display
1 parent e6b3769 commit 38001d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,15 @@ void loop() {
148148
// display Humidity on the LCD screen
149149
lcd.setCursor(0, 0);
150150
lcd.print("Humidity:");
151-
lcd.print(String(humidity) + "%");
151+
lcd.print(String(int(humidity)) + "% ");
152152

153153
// display Temperature on the LCD screen
154154
lcd.setCursor(0, 1);
155155
lcd.print("Temp:");
156-
lcd.print(String(temperature) + "C");
156+
lcd.print(String(int(temperature)) + "C");
157157

158158
// display UVIndex on the LCD screen
159-
// lcd.setCursor(0, 2);
160-
lcd.print(" - UV:");
159+
lcd.print(" UV:");
161160
lcd.print(String(uvIndex));
162161

163162
String preparedData = prepareDataForWiFi(humidity, temperature, heatIndex, uvIndex);

0 commit comments

Comments
 (0)