diff options
author | Max <17062872+westfoxtrot@users.noreply.github.com> | 2019-06-20 20:34:19 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-06-20 12:34:19 -0700 |
commit | af34c548f94528c15cf1f963da4c1dcdbc408dfe (patch) | |
tree | a6cd710464c5d738b4f325ea158b247b4ddd194a /keyboards/westfoxtrot | |
parent | b36bb58b7624533022dc38b02421c9f1d1f3f2e1 (diff) |
[Keyboard] fixes for issue with aanzee qmk port (#6159)
* 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
Diffstat (limited to 'keyboards/westfoxtrot')
-rw-r--r-- | keyboards/westfoxtrot/aanzee/aanzee.c | 27 | ||||
-rw-r--r-- | keyboards/westfoxtrot/aanzee/readme.md | 2 |
2 files changed, 16 insertions, 13 deletions
diff --git a/keyboards/westfoxtrot/aanzee/aanzee.c b/keyboards/westfoxtrot/aanzee/aanzee.c index 0dc1199be9..17efdbe88d 100644 --- a/keyboards/westfoxtrot/aanzee/aanzee.c +++ b/keyboards/westfoxtrot/aanzee/aanzee.c @@ -30,23 +30,26 @@ #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); } diff --git a/keyboards/westfoxtrot/aanzee/readme.md b/keyboards/westfoxtrot/aanzee/readme.md index b97f458639..7d47b048ea 100644 --- a/keyboards/westfoxtrot/aanzee/readme.md +++ b/keyboards/westfoxtrot/aanzee/readme.md @@ -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 |