3 void matrix_init_kb(void){
8 bool led_update_kb(led_t led_state
) {
9 bool res
= led_update_user(led_state
);
11 // writePin sets the pin high for 1 and low for 0.
12 // In this example the pins are inverted, setting
13 // it low/0 turns it on, and high/1 turns the LED off.
14 // This behavior depends on whether the LED is between the pin
15 // and VCC or the pin and GND.
16 writePin(F4
, !led_state
.caps_lock
);