summaryrefslogtreecommitdiff
path: root/keyboards/westfoxtrot/aanzee
diff options
context:
space:
mode:
authorWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
committerWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
commit71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (patch)
tree3bb3e5e496621535611e087720aa5c4d7a533e5e /keyboards/westfoxtrot/aanzee
parent86ad4988fe7ff64916127509d84f44c56fa097aa (diff)
parentda1f05fbc19477c05c0c01bb07fabfaf1ece9d54 (diff)
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'keyboards/westfoxtrot/aanzee')
-rw-r--r--keyboards/westfoxtrot/aanzee/aanzee.c27
-rw-r--r--keyboards/westfoxtrot/aanzee/config.h2
-rw-r--r--keyboards/westfoxtrot/aanzee/readme.md2
3 files changed, 17 insertions, 14 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/config.h b/keyboards/westfoxtrot/aanzee/config.h
index 3959066b22..d88101fdc8 100644
--- a/keyboards/westfoxtrot/aanzee/config.h
+++ b/keyboards/westfoxtrot/aanzee/config.h
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBW
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCING_DELAY 5
+#define DEBOUNCE 5
/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST
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