1 #include "tiger_lily.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 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
18 // put your per-action keyboard code here
19 // runs for every action, just before processing by the firmware
21 return process_record_user(keycode, record);
24 void led_set_kb(uint8_t usb_led) {
26 DDRC |= (1<<5) | (1<<6);
30 if (usb_led & (1<<USB_LED_NUM_LOCK))
35 if (usb_led & (1<<USB_LED_SCROLL_LOCK))
40 if (usb_led & (1<<USB_LED_CAPS_LOCK))
45 led_set_user(usb_led);
48 __attribute__ ((weak))
49 void matrix_init_user(void) {
52 __attribute__ ((weak))
53 void matrix_scan_user(void) {
56 __attribute__ ((weak))
57 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
61 __attribute__ ((weak))
62 void led_set_user(uint8_t usb_led) {