rev2.c 336 B

1234567891011121314151617
  1. #include "rev2.h"
  2. void led_set_kb(uint8_t usb_led) {
  3. // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
  4. if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
  5. writePinLow(B2);
  6. } else {
  7. writePinHigh(B2);
  8. }
  9. led_set_user(usb_led);
  10. }
  11. void matrix_init_kb(void) {
  12. setPinOutput(B2);
  13. matrix_init_user();
  14. }