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:
committed by
GitHub
parent
a781672ce7
commit
a7ff2b8d54
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user