6 void matrix_init_kb(void) {
7 // put your keyboard start-up code here
8 // runs once when the firmware starts up
13 void matrix_scan_kb(void) {
14 // put your looping keyboard code here
15 // runs every cycle (a lot)
20 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
21 // put your per-action keyboard code here
22 // runs for every action, just before processing by the firmware
24 return process_record_user(keycode, record);
27 void led_set_kb(uint8_t usb_led) {
28 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
30 led_set_user(usb_led);
33 void backlight_init_ports(void)
35 // Set B5, B6, and B7 as output
36 DDRB |= (1<<7)|(1<<6)|(1<<5);
48 void backlight_set(uint8_t level)
96 xprintf("Unknown level: %d\n", level);