]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/westfoxtrot/aanzee/aanzee.c
[Keyboard] fixes for issue with aanzee qmk port (#6159)
[qmk_firmware.git] / keyboards / westfoxtrot / aanzee / aanzee.c
1 /* Copyright 2019 westfoxtrot
2
3 *
4
5 * This program is free software: you can redistribute it and/or modify
6
7 * it under the terms of the GNU General Public License as published by
8
9 * the Free Software Foundation, either version 2 of the License, or
10
11 * (at your option) any later version.
12
13 *
14
15 * This program is distributed in the hope that it will be useful,
16
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
21 * GNU General Public License for more details.
22
23 *
24
25 * You should have received a copy of the GNU General Public License
26
27 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
28
29 */
30
31 #include "aanzee.h"
32
33 void keyboard_pre_init_kb(void) {
34
35     // Call the keyboard pre init code.
36     // Set our LED pins as output
37     setPinOutput(B2);
38
39     keyboard_pre_init_user();
40 }
41
42 void led_set_kb(uint8_t usb_led) {
43
44     if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
45
46         // Turn capslock on
47         writePinLow(B2);
48     } else {
49
50         // Turn capslock off
51         writePinHigh(B2);
52     }
53
54     led_set_user(usb_led);
55 }