]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/projectkb/alice/alice.c
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / keyboards / projectkb / alice / alice.c
1 #include "alice.h"
2
3 void matrix_init_board(void){
4     setPinOutput(A0);
5     setPinOutput(A1);
6     setPinOutput(A2);
7 }
8
9
10 void led_set_kb(uint8_t usb_led) {
11     if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
12         writePinLow(A0);
13     } else {
14         writePinHigh(A0);
15     }
16     if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
17         writePinLow(A1);
18     } else {
19         writePinHigh(A1);
20     }
21     if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
22         writePinLow(A2);
23     } else {
24         writePinHigh(A2);
25     }
26     led_set_user(usb_led);
27 }