]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/z150_blackheart/z150_blackheart.c
Usbasploader bootloader option addition (#6304)
[qmk_firmware.git] / keyboards / z150_blackheart / z150_blackheart.c
1 #include "z150_blackheart.h"
2
3 void matrix_init_kb(void) {
4     setPinOutput(B0);
5     setPinOutput(E6);
6     setPinOutput(E7);
7
8     matrix_init_user();
9 };
10
11 void led_set_kb(uint8_t usb_led) {
12     // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
13     if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
14         writePinHigh(E7);
15     } else {
16         writePinLow(E7);
17     }
18
19     if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
20         writePinHigh(B0);
21     } else {
22         writePinLow(B0);
23     }
24
25     if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
26         writePinHigh(E6);
27     } else {
28         writePinLow(E6);
29     }
30
31     led_set_user(usb_led);
32 }