aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/xd96/xd96.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/xd96/xd96.c b/keyboards/xd96/xd96.c
index 45cfb3b1f..e2af9f100 100644
--- a/keyboards/xd96/xd96.c
+++ b/keyboards/xd96/xd96.c
@@ -16,9 +16,11 @@
16#include "xd96.h" 16#include "xd96.h"
17 17
18#define CAPS_PIN B6 18#define CAPS_PIN B6
19#define NUMLOCK_PIN C6
19 20
20void keyboard_pre_init_kb(void) { 21void keyboard_pre_init_kb(void) {
21 setPinOutput(CAPS_PIN); 22 setPinOutput(CAPS_PIN);
23 setPinOutput(NUMLOCK_PIN);
22 24
23 keyboard_pre_init_user(); 25 keyboard_pre_init_user();
24} 26}
@@ -29,6 +31,12 @@ void led_set_kb(uint8_t usb_led) {
29 } else { 31 } else {
30 writePinHigh(CAPS_PIN); 32 writePinHigh(CAPS_PIN);
31 } 33 }
34
35 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
36 writePinLow(NUMLOCK_PIN);
37 } else {
38 writePinHigh(NUMLOCK_PIN);
39 }
32 40
33 led_set_user(usb_led); 41 led_set_user(usb_led);
34} 42}