temp: Toggle pico led as heatbeat

To show that the monitor is alive, blink the onboard LED of the pico.
This commit is contained in:
Rahix 2025-08-24 21:40:09 +02:00
parent 78c85d3ffe
commit 164f930b6b

View file

@ -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}")