From c88b9a9787119d85faca26561721a339a28cedbd Mon Sep 17 00:00:00 2001 From: nitko12 Date: Wed, 29 Jul 2020 09:43:08 +0200 Subject: [PATCH] fixed temperature formatting --- .../1-Weather_station_example.ino | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/3. Projects/1-Weather_station_example/1-Weather_station_example.ino b/examples/3. Projects/1-Weather_station_example/1-Weather_station_example.ino index fd6c5a7..1160799 100644 --- a/examples/3. Projects/1-Weather_station_example/1-Weather_station_example.ino +++ b/examples/3. Projects/1-Weather_station_example/1-Weather_station_example.ino @@ -221,16 +221,20 @@ void drawTemps() display.setTextColor(WHITE, BLACK); display.setCursor(1 * rectSpacing + 0 * rectWidth + textMargin, 300 + textMargin + 70); - display.println(days[0]); + display.print(days[0]); + display.println(F("C")); display.setCursor(2 * rectSpacing + 1 * rectWidth + textMargin, 300 + textMargin + 70); - display.println(days[1]); + display.print(days[1]); + display.println(F("C")); display.setCursor(3 * rectSpacing + 2 * rectWidth + textMargin, 300 + textMargin + 70); - display.println(days[2]); + display.print(days[2]); + display.println(F("C")); display.setCursor(4 * rectSpacing + 3 * rectWidth + textMargin, 300 + textMargin + 70); - display.println(days[3]); + display.print(days[3]); + display.println(F("C")); // Drawing temperature values into black rectangles display.setFont(&Roboto_Light_48);