6 void matrix_init_kb(void) {
7 // put your keyboard start-up code here
8 // runs once when the firmware starts up
12 // JTAG disable for PORT F. write JTD bit twice within four cycles.
18 void matrix_scan_kb(void) {
22 void backlight_init_ports(void) {
23 print("init_backlight_pin()\n");
24 // Set our LED pins as output
25 DDRD |= (1<<6); // Esc
26 DDRB |= (1<<7); // Page Up
27 DDRD |= (1<<4); // Arrows
29 // Set our LED pins low
30 PORTD &= ~(1<<6); // Esc
31 PORTB &= ~(1<<7); // Page Up
32 PORTD &= ~(1<<4); // Arrows
35 void backlight_set(uint8_t level) {
38 PORTD |= (1<<6); // Esc
39 PORTB |= (1<<7); // Page Up
40 PORTD |= (1<<4); // Arrows
43 PORTD &= ~(1<<6); // Esc
44 PORTB &= ~(1<<7); // Page Up
45 PORTD &= ~(1<<4); // Arrows
49 void led_init_ports() {
50 // * Set our LED pins as output
54 void led_set_kb(uint8_t usb_led) {
56 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {