diff options
author | Wolf Van Herreweghe <[email protected]> | 2022-12-30 01:51:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-30 11:51:12 +1100 |
commit | a7ff2b8d54e1b56c5c25f4a7b6c8c5d9dedee2ab (patch) | |
tree | a5381c91bada965b3d50a478470de233fe9f3658 /keyboards/kopibeng/typ65/typ65.c | |
parent | a781672ce7f2f261118bf8f70f8c870f01043adb (diff) | |
download | qmk_firmware-a7ff2b8d54e1b56c5c25f4a7b6c8c5d9dedee2ab.tar.gz qmk_firmware-a7ff2b8d54e1b56c5c25f4a7b6c8c5d9dedee2ab.zip |
Typ65+ Add code to auto turn off LEDs when the PC goes to sleep (#19365)
Co-authored-by: Wolf <[email protected]>
Diffstat (limited to 'keyboards/kopibeng/typ65/typ65.c')
-rw-r--r-- | keyboards/kopibeng/typ65/typ65.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/kopibeng/typ65/typ65.c b/keyboards/kopibeng/typ65/typ65.c index 152b2e7737..2844f2ca83 100644 --- a/keyboards/kopibeng/typ65/typ65.c +++ b/keyboards/kopibeng/typ65/typ65.c @@ -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(); }
\ No newline at end of file |