1
0
Fork 0

Swap KBD75 caps lock LED pin levels (#5132)

This commit is contained in:
fauxpark 2019-02-15 16:01:40 +11:00 committed by Drashna Jaelre
parent 1e1b55fbdf
commit 7c2bee8b88
2 changed files with 8 additions and 8 deletions

View file

@ -3,9 +3,9 @@
void led_set_kb(uint8_t usb_led) { void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
writePinHigh(B2);
} else {
writePinLow(B2); writePinLow(B2);
} else {
writePinHigh(B2);
} }
led_set_user(usb_led); led_set_user(usb_led);

View file

@ -3,9 +3,9 @@
void led_set_kb(uint8_t usb_led) { void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
writePinHigh(B2);
} else {
writePinLow(B2); writePinLow(B2);
} else {
writePinHigh(B2);
} }
led_set_user(usb_led); led_set_user(usb_led);