]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/felix/config.h
[Keyboard] Update Felix keyboard (#6306)
[qmk_firmware.git] / keyboards / felix / config.h
1 #pragma once
2
3 #include "config_common.h"
4
5 /* USB Device descriptor parameter */
6 #define VENDOR_ID       0xFEED
7 #define PRODUCT_ID      0x6060
8 #define DEVICE_VER      0x0001
9 #define MANUFACTURER    Unikeyboard
10 #define PRODUCT         Felix
11 #define DESCRIPTION     4x5 number/macropad
12
13 /* key matrix size */
14 #define MATRIX_ROWS 5
15 #define MATRIX_COLS 4
16
17 /*
18  * Keyboard Matrix Assignments
19  *
20  * Change this to how you wired your keyboard
21  * COLS: AVR pins used for columns, left to right
22  * ROWS: AVR pins used for rows, top to bottom
23  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
24  *                  ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
25  *
26 */
27 #define MATRIX_ROW_PINS { B2, B3, B1, F7, F6 }
28 #define MATRIX_COL_PINS { B5, B4, E6, D7 }
29 #define UNUSED_PINS
30
31 /* COL2ROW, ROW2COL */
32 #define DIODE_DIRECTION ROW2COL
33
34 /*
35  * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
36  */
37 #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
38
39 #define BACKLIGHT_PIN C6
40 #define BACKLIGHT_LEVELS 5
41 //#define BACKLIGHT_BREATHING
42
43 // #define RGB_DI_PIN E2
44 // #ifdef RGB_DI_PIN
45 //   #define RGBLED_NUM 16
46 //   #define RGBLIGHT_HUE_STEP 8
47 //   #define RGBLIGHT_SAT_STEP 8
48 //   #define RGBLIGHT_VAL_STEP 8
49 //   #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
50 //   #define RGBLIGHT_SLEEP  /* If defined, the RGB lighting will be switched off when the host goes to sleep */
51 // /*== all animations enable ==*/
52 //   #define RGBLIGHT_ANIMATIONS
53 // /*== or choose animations ==*/
54 //   #define RGBLIGHT_EFFECT_BREATHING
55 //   #define RGBLIGHT_EFFECT_RAINBOW_MOOD
56 //   #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
57 //   #define RGBLIGHT_EFFECT_SNAKE
58 //   #define RGBLIGHT_EFFECT_KNIGHT
59 //   #define RGBLIGHT_EFFECT_CHRISTMAS
60 //   #define RGBLIGHT_EFFECT_STATIC_GRADIENT
61 //   #define RGBLIGHT_EFFECT_RGB_TEST
62 //   #define RGBLIGHT_EFFECT_ALTERNATING
63 // /*== customize breathing effect ==*/
64 //   /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
65 //   #define RGBLIGHT_BREATHE_TABLE_SIZE 256      // 256(default) or 128 or 64
66 //   /*==== use exp() and sin() ====*/
67 //   #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85  // 1 to 2.7
68 //   #define RGBLIGHT_EFFECT_BREATHE_MAX    255   // 0 to 255
69 // #endif
70
71 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
72 #define DEBOUNCE 5
73
74 /* define if matrix has ghost (lacks anti-ghosting diodes) */
75 //#define MATRIX_HAS_GHOST
76
77 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
78 #define LOCKING_SUPPORT_ENABLE
79 /* Locking resynchronize hack */
80 #define LOCKING_RESYNC_ENABLE
81
82 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
83  * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
84  */
85 // #define GRAVE_ESC_CTRL_OVERRIDE
86
87 /*
88  * Force NKRO
89  *
90  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
91  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
92  * makefile for this to work.)
93  *
94  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
95  * until the next keyboard reset.
96  *
97  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
98  * fully operational during normal computer usage.
99  *
100  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
101  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
102  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
103  * power-up.
104  *
105  */
106 //#define FORCE_NKRO
107
108 /*
109  * Magic Key Options
110  *
111  * Magic keys are hotkey commands that allow control over firmware functions of
112  * the keyboard. They are best used in combination with the HID Listen program,
113  * found here: https://www.pjrc.com/teensy/hid_listen.html
114  *
115  * The options below allow the magic key functionality to be changed. This is
116  * useful if your keyboard/keypad is missing keys and you want magic key support.
117  *
118  */
119
120 /* key combination for magic key command */
121 /* defined by default; to change, uncomment and set to the combination you want */
122 // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
123
124 /* control how magic key switches layers */
125 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS  true
126 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS  true
127 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
128
129 /* override magic key keymap */
130 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
131 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
132 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
133 //#define MAGIC_KEY_HELP           H
134 //#define MAGIC_KEY_HELP_ALT       SLASH
135 //#define MAGIC_KEY_DEBUG          D
136 //#define MAGIC_KEY_DEBUG_MATRIX   X
137 //#define MAGIC_KEY_DEBUG_KBD      K
138 //#define MAGIC_KEY_DEBUG_MOUSE    M
139 //#define MAGIC_KEY_VERSION        V
140 //#define MAGIC_KEY_STATUS         S
141 //#define MAGIC_KEY_CONSOLE        C
142 //#define MAGIC_KEY_LAYER0         0
143 //#define MAGIC_KEY_LAYER0_ALT     GRAVE
144 //#define MAGIC_KEY_LAYER1         1
145 //#define MAGIC_KEY_LAYER2         2
146 //#define MAGIC_KEY_LAYER3         3
147 //#define MAGIC_KEY_LAYER4         4
148 //#define MAGIC_KEY_LAYER5         5
149 //#define MAGIC_KEY_LAYER6         6
150 //#define MAGIC_KEY_LAYER7         7
151 //#define MAGIC_KEY_LAYER8         8
152 //#define MAGIC_KEY_LAYER9         9
153 //#define MAGIC_KEY_BOOTLOADER     B
154 //#define MAGIC_KEY_BOOTLOADER_ALT ESC
155 //#define MAGIC_KEY_LOCK           CAPS
156 //#define MAGIC_KEY_EEPROM         E
157 //#define MAGIC_KEY_EEPROM_CLEAR   BSPACE
158 //#define MAGIC_KEY_NKRO           N
159 //#define MAGIC_KEY_SLEEP_LED      Z
160
161 /*
162  * Feature disable options
163  *  These options are also useful to firmware size reduction.
164  */
165
166 /* disable debug print */
167 //#define NO_DEBUG
168
169 /* disable print */
170 //#define NO_PRINT
171
172 /* disable action features */
173 //#define NO_ACTION_LAYER
174 //#define NO_ACTION_TAPPING
175 //#define NO_ACTION_ONESHOT
176 //#define NO_ACTION_MACRO
177 //#define NO_ACTION_FUNCTION
178
179 /*
180  * MIDI options
181  */
182
183 /* Prevent use of disabled MIDI features in the keymap */
184 //#define MIDI_ENABLE_STRICT 1
185
186 /* enable basic MIDI features:
187    - MIDI notes can be sent when in Music mode is on
188 */
189 //#define MIDI_BASIC
190
191 /* enable advanced MIDI features:
192    - MIDI notes can be added to the keymap
193    - Octave shift and transpose
194    - Virtual sustain, portamento, and modulation wheel
195    - etc.
196 */
197 //#define MIDI_ADVANCED
198
199 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
200 //#define MIDI_TONE_KEYCODE_OCTAVES 1
201
202 /*
203  * HD44780 LCD Display Configuration
204  */
205 /*
206 #define LCD_LINES           2     //< number of visible lines of the display
207 #define LCD_DISP_LENGTH    16     //< visibles characters per line of the display
208
209 #define LCD_IO_MODE      1            //< 0: memory mapped mode, 1: IO port mode
210
211 #if LCD_IO_MODE
212 #define LCD_PORT         PORTB        //< port for the LCD lines
213 #define LCD_DATA0_PORT   LCD_PORT     //< port for 4bit data bit 0
214 #define LCD_DATA1_PORT   LCD_PORT     //< port for 4bit data bit 1
215 #define LCD_DATA2_PORT   LCD_PORT     //< port for 4bit data bit 2
216 #define LCD_DATA3_PORT   LCD_PORT     //< port for 4bit data bit 3
217 #define LCD_DATA0_PIN    4            //< pin for 4bit data bit 0
218 #define LCD_DATA1_PIN    5            //< pin for 4bit data bit 1
219 #define LCD_DATA2_PIN    6            //< pin for 4bit data bit 2
220 #define LCD_DATA3_PIN    7            //< pin for 4bit data bit 3
221 #define LCD_RS_PORT      LCD_PORT     //< port for RS line
222 #define LCD_RS_PIN       3            //< pin  for RS line
223 #define LCD_RW_PORT      LCD_PORT     //< port for RW line
224 #define LCD_RW_PIN       2            //< pin  for RW line
225 #define LCD_E_PORT       LCD_PORT     //< port for Enable line
226 #define LCD_E_PIN        1            //< pin  for Enable line
227 #endif
228 */
229
230 /* Bootmagic Lite key configuration */
231 // #define BOOTMAGIC_LITE_ROW 0
232 // #define BOOTMAGIC_LITE_COLUMN 0