]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/westfoxtrot/aanzee/aanzee.c
0dc1199be9fa6b8f855d197b0cb707743c69e5a0
[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
34 void led_set_kb(uint8_t usb_led) {
35
36 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
37
38 // Turn capslock on
39
40   writePinLow(B2);
41
42 } else {
43
44 // Turn capslock off
45
46   writePinHigh(B2);
47
48 }
49
50 led_set_user(usb_led);
51
52 }