]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] fixes for issue with aanzee qmk port (#6159)
authorMax <17062872+westfoxtrot@users.noreply.github.com>
Thu, 20 Jun 2019 19:34:19 +0000 (20:34 +0100)
committerDrashna Jaelre <drashna@live.com>
Thu, 20 Jun 2019 19:34:19 +0000 (12:34 -0700)
* fixed issue with LED indicators
corrected error in info.json

* fixed issue with led indictors

* added fix for key_count to info.json for westfoxtrot/aanzee

* fix to support config.qmk.fm correctly and remove unused key from matrix for westfoxtrot/aanzee

* fix for caps_lock led

* Update readme.md

keyboards/westfoxtrot/aanzee/aanzee.c
keyboards/westfoxtrot/aanzee/readme.md

index 0dc1199be9fa6b8f855d197b0cb707743c69e5a0..17efdbe88da9f3aa9e5b25e995146f99b57e1697 100644 (file)
 
 #include "aanzee.h"
 
+void keyboard_pre_init_kb(void) {
 
-void led_set_kb(uint8_t usb_led) {
-
-if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
-
-// Turn capslock on
-
-  writePinLow(B2);
+    // Call the keyboard pre init code.
+    // Set our LED pins as output
+    setPinOutput(B2);
 
-} else {
+    keyboard_pre_init_user();
+}
 
-// Turn capslock off
+void led_set_kb(uint8_t usb_led) {
 
-  writePinHigh(B2);
+    if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
 
-}
+        // Turn capslock on
+        writePinLow(B2);
+    } else {
 
-led_set_user(usb_led);
+        // Turn capslock off
+        writePinHigh(B2);
+    }
 
+    led_set_user(usb_led);
 }
index b97f458639bdda1f12dc71daf445bd52952578d4..7d47b048ea65580bcd76e8e04b13a99cf1d3191e 100644 (file)
@@ -1,6 +1,6 @@
 # aanzee
 
-![aanzee](https://cablecardesigns.co/portfolio-posts/aanzee)
+[aanzee](https://cablecardesigns.co/portfolio-posts/aanzee)
 
 custom pcb for the aanzee keyboard