summaryrefslogtreecommitdiff
path: root/keyboards/kbdfans/kbd75/rev2/rev2.c
blob: bf91d40092184e6c369a2c1fdbce508dc7951b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "rev2.h"

void led_set_kb(uint8_t usb_led) {
  // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
  if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
    writePinLow(B2);
  } else {
    writePinHigh(B2);
  }

  led_set_user(usb_led);
}

void matrix_init_kb(void) {
  setPinOutput(B2);
  matrix_init_user();
}