2 Copyright 2019 westfoxtrot
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0x21FF
24 #define PRODUCT_ID 0xAA01
25 #define DEVICE_VER 0x0001
26 #define MANUFACTURER westfoxtrot
27 #define PRODUCT aanzee
28 #define DESCRIPTION QMK Firmware for the Aanzee PCB
32 #define MATRIX_COLS 16
34 // ROWS: Top to bottom, COLS: Left to right
36 #define MATRIX_ROW_PINS {B4,D7,D6,D4,B3}
37 #define MATRIX_COL_PINS {D2,D1,D0,D3,D5,C7,C6,B6,B5,F0,F1,F4,F5,F6,F7,B0}
40 /* COL2ROW or ROW2COL */
41 #define DIODE_DIRECTION COL2ROW
43 #define BACKLIGHT_PIN B7
44 #define BACKLIGHT_BREATHING
45 #define BACKLIGHT_LEVELS 5
50 #define RGBLIGHT_HUE_STEP 12
51 #define RGBLIGHT_SAT_STEP 25
52 #define RGBLIGHT_VAL_STEP 12
53 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
54 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
55 /*== all animations enable ==*/
56 #define RGBLIGHT_ANIMATIONS
57 /*== or choose animations ==*/
58 // #define RGBLIGHT_EFFECT_BREATHING
59 // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
60 // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
61 // #define RGBLIGHT_EFFECT_SNAKE
62 // #define RGBLIGHT_EFFECT_KNIGHT
63 // #define RGBLIGHT_EFFECT_CHRISTMAS
64 // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
65 // #define RGBLIGHT_EFFECT_RGB_TEST
66 // #define RGBLIGHT_EFFECT_ALTERNATING
70 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
73 /* define if matrix has ghost (lacks anti-ghosting diodes) */
74 //#define MATRIX_HAS_GHOST
76 /* number of backlight levels */
78 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
79 #define LOCKING_SUPPORT_ENABLE
80 /* Locking resynchronize hack */
81 #define LOCKING_RESYNC_ENABLE
83 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
84 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
86 #define GRAVE_ESC_CTRL_OVERRIDE
91 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
92 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
93 * makefile for this to work.)
95 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
96 * until the next keyboard reset.
98 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
99 * fully operational during normal computer usage.
101 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
102 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
103 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
112 * Magic keys are hotkey commands that allow control over firmware functions of
113 * the keyboard. They are best used in combination with the HID Listen program,
114 * found here: https://www.pjrc.com/teensy/hid_listen.html
116 * The options below allow the magic key functionality to be changed. This is
117 * useful if your keyboard/keypad is missing keys and you want magic key support.
122 //dynamic keymap and via support
124 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
128 // TODO: refactor with new user EEPROM code (coming soon)
129 #define EEPROM_MAGIC 0x451F
130 #define EEPROM_MAGIC_ADDR 32
131 // Bump this every time we change what we store
132 // This will automatically reset the EEPROM with defaults
133 // and avoid loading invalid data from the EEPROM
134 #define EEPROM_VERSION 0x08
135 #define EEPROM_VERSION_ADDR 34
137 // Dynamic keymap starts after EEPROM version
138 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
139 // Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
140 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 675 // **** CHANGE THIS BASED ON MATRIX_ROWS & MATRIX_COLS ****
141 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 349 // **** CHANGE THIS BASED ON 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR ****
142 #define DYNAMIC_KEYMAP_MACRO_COUNT 16