aboutsummaryrefslogtreecommitdiff
path: root/keyboards/felix/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/felix/config.h')
-rw-r--r--keyboards/felix/config.h218
1 files changed, 201 insertions, 17 deletions
diff --git a/keyboards/felix/config.h b/keyboards/felix/config.h
index 0dd8eea07..19a5247d2 100644
--- a/keyboards/felix/config.h
+++ b/keyboards/felix/config.h
@@ -1,5 +1,4 @@
1#ifndef CONFIG_H 1#pragma once
2#define CONFIG_H
3 2
4#include "config_common.h" 3#include "config_common.h"
5 4
@@ -9,40 +8,225 @@
9#define DEVICE_VER 0x0001 8#define DEVICE_VER 0x0001
10#define MANUFACTURER Unikeyboard 9#define MANUFACTURER Unikeyboard
11#define PRODUCT Felix 10#define PRODUCT Felix
12#define DESCRIPTION 4x5 number/macropad. 11#define DESCRIPTION 4x5 number/macropad
13 12
14/* key matrix size */ 13/* key matrix size */
15#define MATRIX_ROWS 5 14#define MATRIX_ROWS 5
16#define MATRIX_COLS 4 15#define MATRIX_COLS 4
17 16
18/* key matrix pins */ 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*/
19#define MATRIX_ROW_PINS { B2, B3, B1, F7, F6 } 27#define MATRIX_ROW_PINS { B2, B3, B1, F7, F6 }
20#define MATRIX_COL_PINS { B5, B4, E6, D7 } 28#define MATRIX_COL_PINS { B5, B4, E6, D7 }
21#define UNUSED_PINS 29#define UNUSED_PINS
22 30
23/* COL2ROW or ROW2COL */ 31/* COL2ROW, ROW2COL */
24#define DIODE_DIRECTION ROW2COL 32#define DIODE_DIRECTION ROW2COL
25 33
26/* number of backlight levels */ 34/*
27/* Not sure what pin controls the backlighting, need help for this. */ 35 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
28#define BACKLIGHT_PIN 36 */
37#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
38
39#define BACKLIGHT_PIN C6
29#define BACKLIGHT_LEVELS 5 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
30 70
31/* Set 0 if debouncing isn't needed */ 71/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
32#define DEBOUNCE 5 72#define DEBOUNCE 5
33 73
74/* define if matrix has ghost (lacks anti-ghosting diodes) */
75//#define MATRIX_HAS_GHOST
76
34/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 77/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
35#define LOCKING_SUPPORT_ENABLE 78#define LOCKING_SUPPORT_ENABLE
36
37/* Locking resynchronize hack */ 79/* Locking resynchronize hack */
38#define LOCKING_RESYNC_ENABLE 80#define LOCKING_RESYNC_ENABLE
39 81
40/* there is no rgb underglow by default. */ 82/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
41#define RGB_DI_PIN 83 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
42#define RGBLIGHT_ANIMATIONS 84 */
43#define RGBLED_NUM 16 85// #define GRAVE_ESC_CTRL_OVERRIDE
44#define RGBLIGHT_HUE_STEP 8 86
45#define RGBLIGHT_SAT_STEP 8 87/*
46#define RGBLIGHT_VAL_STEP 8 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
47 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
48#endif 227#endif
228*/
229
230/* Bootmagic Lite key configuration */
231// #define BOOTMAGIC_LITE_ROW 0
232// #define BOOTMAGIC_LITE_COLUMN 0