Give ThinkNode-m4 a heartbeat

This commit is contained in:
Jonathan Bennett
2026-05-06 23:18:19 -05:00
parent 9dbf2f05af
commit d4e61f784a
3 changed files with 17 additions and 0 deletions
+13
View File
@@ -111,6 +111,19 @@ int32_t StatusLEDModule::runOnce()
#endif
}
// If we want a LED to be dedicated to the simple hearbeat, we can use that instead of the charge LED
#if defined(LED_HEARTBEAT)
if (!config.device.led_heartbeat_disabled) {
if (HEARTBEAT_LED_state == LED_STATE_ON) {
HEARTBEAT_LED_state = LED_STATE_OFF;
my_interval = 999;
} else {
HEARTBEAT_LED_state = LED_STATE_ON;
my_interval = 1;
}
digitalWrite(LED_HEARTBEAT, HEARTBEAT_LED_state);
}
#endif
if (!config.bluetooth.enabled || PAIRING_LED_starttime + 30 * 1000 < millis() || doing_fast_blink) {
PAIRING_LED_state = LED_STATE_OFF;
} else if (ble_state == unpaired) {