aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/westfoxtrot/aanzee/aanzee.c27
-rw-r--r--keyboards/westfoxtrot/aanzee/readme.md2
2 files changed, 16 insertions, 13 deletions
diff --git a/keyboards/westfoxtrot/aanzee/aanzee.c b/keyboards/westfoxtrot/aanzee/aanzee.c
index 0dc1199be..17efdbe88 100644
--- a/keyboards/westfoxtrot/aanzee/aanzee.c
+++ b/keyboards/westfoxtrot/aanzee/aanzee.c
@@ -30,23 +30,26 @@
30 30
31#include "aanzee.h" 31#include "aanzee.h"
32 32
33void keyboard_pre_init_kb(void) {
33 34
34void led_set_kb(uint8_t usb_led) { 35 // Call the keyboard pre init code.
35 36 // Set our LED pins as output
36if (usb_led & (1<<USB_LED_CAPS_LOCK)) { 37 setPinOutput(B2);
37
38// Turn capslock on
39
40 writePinLow(B2);
41 38
42} else { 39 keyboard_pre_init_user();
40}
43 41
44// Turn capslock off 42void led_set_kb(uint8_t usb_led) {
45 43
46 writePinHigh(B2); 44 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
47 45
48} 46 // Turn capslock on
47 writePinLow(B2);
48 } else {
49 49
50led_set_user(usb_led); 50 // Turn capslock off
51 writePinHigh(B2);
52 }
51 53
54 led_set_user(usb_led);
52} 55}
diff --git a/keyboards/westfoxtrot/aanzee/readme.md b/keyboards/westfoxtrot/aanzee/readme.md
index b97f45863..7d47b048e 100644
--- a/keyboards/westfoxtrot/aanzee/readme.md
+++ b/keyboards/westfoxtrot/aanzee/readme.md
@@ -1,6 +1,6 @@
1# aanzee 1# aanzee
2 2
3![aanzee](https://cablecardesigns.co/portfolio-posts/aanzee) 3[aanzee](https://cablecardesigns.co/portfolio-posts/aanzee)
4 4
5custom pcb for the aanzee keyboard 5custom pcb for the aanzee keyboard
6 6