5 void matrix_init_kb(void) {
6 // put your keyboard start-up code here
7 // runs once when the firmware starts up
10 // JTAG disable for PORT F. write JTD bit twice within four cycles.
15 void led_set_kb(uint8_t usb_led) {
19 void backlight_init_ports(void) {
23 // Initialize the timer
30 void backlight_set(uint8_t level) {
31 // Determine the PWM level
51 xprintf("Unknown level: %d\n", level);
54 // Write the PWM level to the timer
55 TC4H = pwm_level >> 8;
56 OCR4A = 0xFF & pwm_level;