mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-27 02:56:33 +06:00
DZ60: Add Caps Lock LED for default keymap (#2800)
Commit b546da0
added better init handling, but removed Caps Lock LED handling. This re-adds it (in the right place).
This commit is contained in:
parent
7d08e48c50
commit
1feb42a108
|
@ -59,3 +59,11 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
DDRB |= (1 << 2); PORTB &= ~(1 << 2);
|
||||
} else {
|
||||
DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user