From 164f930b6b358302642cda03de57fea524ed4ce2 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 24 Aug 2025 21:40:09 +0200 Subject: [PATCH] temp: Toggle pico led as heatbeat To show that the monitor is alive, blink the onboard LED of the pico. --- Misc/Temp-Monitor/temperature_monitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Misc/Temp-Monitor/temperature_monitor.py b/Misc/Temp-Monitor/temperature_monitor.py index 483d138..f4a975d 100644 --- a/Misc/Temp-Monitor/temperature_monitor.py +++ b/Misc/Temp-Monitor/temperature_monitor.py @@ -6,6 +6,8 @@ from machine import Pin clock = Pin(2) data = Pin(4) +led = Pin(25, Pin.OUT) +led.high() ADC_RATE = 40 @@ -50,5 +52,6 @@ while True: if elapsed >= 200 or elapsed < 0: print(f"{temperature:.6f},{temperature_filtered:.6f}") last_report = now + led.toggle() except Exception as e: print(f"Error {e}")