Merge pull request #1122 from fschrempf/xiao-nrf-ui-and-power-optimizations

Companion Power Optimizations and UI Support for XIAO NRF52
This commit is contained in:
ripplebiz 2025-11-26 22:11:02 +11:00 committed by GitHub
commit c17bd5d6fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 64 additions and 7 deletions

View file

@ -618,7 +618,7 @@ void UITask::userLedHandler() {
led_state = 0;
next_led_change = cur_time + LED_CYCLE_MILLIS - last_led_increment;
}
digitalWrite(PIN_STATUS_LED, led_state);
digitalWrite(PIN_STATUS_LED, led_state == LED_STATE_ON);
}
#endif
}
@ -650,6 +650,7 @@ void UITask::shutdown(bool restart){
_board->reboot();
} else {
_display->turnOff();
radio_driver.powerOff();
_board->powerOff();
}
}

View file

@ -269,7 +269,7 @@ void UITask::userLedHandler() {
state = 0;
next_change = cur_time + LED_CYCLE_MILLIS - last_increment;
}
digitalWrite(PIN_STATUS_LED, state);
digitalWrite(PIN_STATUS_LED, state == LED_STATE_ON);
}
#endif
}
@ -292,10 +292,12 @@ void UITask::shutdown(bool restart){
#endif // PIN_BUZZER
if (restart)
if (restart) {
_board->reboot();
else
} else {
radio_driver.powerOff();
_board->powerOff();
}
}
void UITask::loop() {