kc60.c 180 B

123456789
  1. #include "quantum.h"
  2. void led_update_ports(led_t led_state) {
  3. if (led_state.caps_lock) {
  4. gpio_set_pin_output(B2);
  5. } else {
  6. gpio_set_pin_input(B2);
  7. }
  8. }