From 108a0d2c3909358e75aa169834617855c4363ded Mon Sep 17 00:00:00 2001 From: Rei Vilo Date: Fri, 19 Jan 2024 21:36:39 +0100 Subject: [PATCH] Update Example_Fast_Temperature.ino Ported to Arduino core for RP2040 Replaced not supported printf() by print() --- .../Example_Fast_Temperature.ino | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/Example_Fast_Temperature/Example_Fast_Temperature.ino b/examples/Example_Fast_Temperature/Example_Fast_Temperature.ino index 7d78eca..aab6090 100644 --- a/examples/Example_Fast_Temperature/Example_Fast_Temperature.ino +++ b/examples/Example_Fast_Temperature/Example_Fast_Temperature.ino @@ -5,8 +5,8 @@ /// @details Library for Pervasive Displays EXT3 - Basic level /// /// @author Rei Vilo -/// @date 21 Dec 2023 -/// @version 703 +/// @date 21 Jan 2024 +/// @version 704 /// /// @copyright (c) Rei Vilo, 2010-2023 /// @copyright Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) @@ -34,7 +34,7 @@ // Define variables and constants -Screen_EPD_EXT3_Fast myScreen(eScreen_EPD_EXT3_271_09_Fast, boardRaspberryPiPico_RP2040); +Screen_EPD_EXT3_Fast myScreen(eScreen_EPD_EXT3_266_0C_Fast, boardRaspberryPiPico_RP2040); // Screen_EPD_EXT3_Fast myScreen(eScreen_EPD_EXT3_271_09_Wide, boardRaspberryPiPico_RP2040); // Prototypes @@ -47,7 +47,12 @@ void check(int8_t temperatureC, uint8_t expectedMode) const char * stringMode[] = { "NONE", "GLOBAL", "FAST", "PARTIAL" }; myScreen.setTemperatureC(temperatureC); uint8_t recommendedMode = myScreen.checkTemperatureMode(expectedMode); - Serial.printf("Temperature= %+3i C - Mode: %8s -> %-8s", temperatureC, stringMode[expectedMode], stringMode[recommendedMode]); + Serial.print("Temperature= "); + Serial.print(temperatureC); + Serial.print(" C - Mode: "); + Serial.print(stringMode[expectedMode]); + Serial.print(" -> "); + Serial.print(stringMode[recommendedMode]); Serial.println(); } @@ -69,6 +74,7 @@ void performTest() void setup() { Serial.begin(115200); + delay(5000); Serial.println(); Serial.println("=== " __FILE__);