1 #include "kitten_paw.h"
3 void matrix_init_kb(void) {
4 // put your keyboard start-up code here
5 // runs once when the firmware starts up
10 void matrix_scan_kb(void) {
11 // put your looping keyboard code here
12 // runs every cycle (a lot)
17 __attribute__ ((weak))
18 void matrix_init_user(void) {
21 __attribute__ ((weak))
22 void matrix_scan_user(void) {
25 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
26 // put your per-action keyboard code here
27 // runs for every action, just before processing by the firmware
29 return process_record_user(keycode, record);
32 void led_set_kb(uint8_t usb_led) {
33 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
37 if (usb_led & (1<<USB_LED_CAPS_LOCK))
40 USB_LED_CAPS_LOCK_OFF;
42 if (usb_led & (1<<USB_LED_NUM_LOCK))
46 if (usb_led & (1<<USB_LED_SCROLL_LOCK))
47 USB_LED_SCROLL_LOCK_ON;
49 USB_LED_SCROLL_LOCK_OFF;
50 led_set_user(usb_led);