aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kitten_paw/kitten_paw.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kitten_paw/kitten_paw.c')
-rw-r--r--keyboards/kitten_paw/kitten_paw.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/keyboards/kitten_paw/kitten_paw.c b/keyboards/kitten_paw/kitten_paw.c
index 8713baf43..92f64b06b 100644
--- a/keyboards/kitten_paw/kitten_paw.c
+++ b/keyboards/kitten_paw/kitten_paw.c
@@ -4,7 +4,6 @@ void matrix_init_kb(void) {
4 // put your keyboard start-up code here 4 // put your keyboard start-up code here
5 // runs once when the firmware starts up 5 // runs once when the firmware starts up
6 6
7 matrix_init_quantum();
8 matrix_init_user(); 7 matrix_init_user();
9} 8}
10 9
@@ -12,7 +11,6 @@ void matrix_scan_kb(void) {
12 // put your looping keyboard code here 11 // put your looping keyboard code here
13 // runs every cycle (a lot) 12 // runs every cycle (a lot)
14 13
15 matrix_scan_quantum();
16 matrix_scan_user(); 14 matrix_scan_user();
17} 15}
18 16
@@ -25,6 +23,21 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
25 23
26void led_set_kb(uint8_t usb_led) { 24void led_set_kb(uint8_t usb_led) {
27 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 25 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
28 26 CONFIG_LED_IO;
27 CONFIG_LED_IO;
28 print_dec(usb_led);
29 if (usb_led & (1<<USB_LED_CAPS_LOCK))
30 USB_LED_CAPS_LOCK_ON;
31 else
32 USB_LED_CAPS_LOCK_OFF;
33
34 if (usb_led & (1<<USB_LED_NUM_LOCK))
35 USB_LED_NUM_LOCK_ON;
36 else
37 USB_LED_NUM_LOCK_OFF;
38 if (usb_led & (1<<USB_LED_SCROLL_LOCK))
39 USB_LED_SCROLL_LOCK_ON;
40 else
41 USB_LED_SCROLL_LOCK_OFF;
29 led_set_user(usb_led); 42 led_set_user(usb_led);
30} 43}