qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

kc60.c (180B)


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