Typ65+ Add code to auto turn off LEDs when the PC goes to sleep (#19365)

Co-authored-by: Wolf <contact@vwolf.be>
This commit is contained in:
Wolf Van Herreweghe 2022-12-30 01:51:12 +01:00 committed by GitHub
parent a781672ce7
commit a7ff2b8d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 10 deletions

View file

@ -48,4 +48,20 @@ __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
break;
}
return state;
}
void suspend_power_down_kb(void) {
writePinLow(INDICATOR_0);
writePinLow(INDICATOR_1);
writePinLow(INDICATOR_2);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
writePinHigh(INDICATOR_0);
writePinHigh(INDICATOR_1);
writePinHigh(INDICATOR_2);
suspend_wakeup_init_user();
}