6 void matrix_init_kb(void) {
7 // put your keyboard start-up code here
8 // runs once when the firmware starts up
14 void matrix_scan_kb(void) {
18 void backlight_init_ports(void) {
19 print("init_backlight_pin()\n");
20 // Set our LED pins as output
21 DDRD |= (1<<6); // Esc
22 DDRB |= (1<<7); // Page Up
23 DDRD |= (1<<4); // Arrows
25 // Set our LED pins low
26 PORTD &= ~(1<<6); // Esc
27 PORTB &= ~(1<<7); // Page Up
28 PORTD &= ~(1<<4); // Arrows
31 void backlight_set(uint8_t level) {
34 PORTD |= (1<<6); // Esc
35 PORTB |= (1<<7); // Page Up
36 PORTD |= (1<<4); // Arrows
39 PORTD &= ~(1<<6); // Esc
40 PORTB &= ~(1<<7); // Page Up
41 PORTD &= ~(1<<4); // Arrows
45 void led_init_ports() {
46 // * Set our LED pins as output
50 void led_set_kb(uint8_t usb_led) {
52 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {