From 55b82f59e5b7f61cc76a4ec97c254bdab8ea0c6c Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Tue, 29 Oct 2024 14:53:45 +0100 Subject: [PATCH] 2024-10-2901 --- src/main.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2fa1f11..8a021d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,6 +56,12 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); #define NUMFLAKES 10 // Number of snowflakes in the animation example +void blink(){ + digitalWrite (LED_Blue, HIGH); + delay(100); + digitalWrite (LED_Blue, !HIGH); +} + void drawIST(float wert){ char msgt[20]; String mw; @@ -110,10 +116,12 @@ void loop() { Serial.print("RTD value: "); Serial.println(rtd); float ratio = rtd; + float messung; ratio /= 32768; Serial.print("Ratio = "); Serial.println(ratio,8); Serial.print("Resistance = "); Serial.println(RREF*ratio,8); - Serial.print("Temperature = "); Serial.println(thermo.temperature(RNOMINAL, RREF)); + messung = thermo.temperature(RNOMINAL, RREF); + Serial.print("Temperature = "); Serial.println(messung); /* display.clearDisplay(); display.setCursor(0,0); // Start at top-left corner @@ -122,7 +130,7 @@ void loop() { display.println(thermo.temperature(RNOMINAL, RREF)); display.display(); */ - drawIST(thermo.temperature(RNOMINAL, RREF)); + drawIST(messung); @@ -151,6 +159,6 @@ void loop() { thermo.clearFault(); } Serial.println(); - digitalWrite (LED_Blue, !digitalRead(LED_Blue)); + blink(); delay(5000); } \ No newline at end of file