1 #include "retro_refit.h"
4 void matrix_init_user(void) {
5 // leave this function blank - it can be defined in a keymap file
9 void matrix_scan_user(void) {
10 // leave this function blank - it can be defined in a keymap file
13 __attribute__ ((weak))
14 void led_set_user(uint8_t usb_led) {
15 // leave this function blank - it can be defined in a keymap file
18 void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
22 // Disable status LED on KB, enable status LED on Teensy (KB_STATUS = !TEENSY_STATUS)
29 void amatrix_scan_kb(void) {
30 // put your looping keyboard code here
31 // runs every cycle (a lot)
36 void led_set_kb(uint8_t usb_led) {
37 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
39 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
48 if (usb_led & (1<<USB_LED_NUM_LOCK)) {
57 if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
67 led_set_user(usb_led);