aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Andersson <wraul@dbox.se>2017-06-17 19:41:55 +0200
committerMathias Andersson <wraul@dbox.se>2017-06-23 12:07:18 +0200
commit3522496f24a3e5c13bca573f3ea1e2a17839c274 (patch)
treea1aa69cc907e48ea609d46d56f23ec1a6420ac33
parent67b8bf8f70303741027575428a53513c6610d22c (diff)
downloadqmk_firmware-3522496f24a3e5c13bca573f3ea1e2a17839c274.tar.gz
qmk_firmware-3522496f24a3e5c13bca573f3ea1e2a17839c274.zip
Update Phantom config to better match template
-rw-r--r--keyboards/phantom/config.h114
-rw-r--r--keyboards/phantom/rules.mk30
2 files changed, 122 insertions, 22 deletions
diff --git a/keyboards/phantom/config.h b/keyboards/phantom/config.h
index 71a33498b..e073cd8dc 100644
--- a/keyboards/phantom/config.h
+++ b/keyboards/phantom/config.h
@@ -44,6 +44,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
44/* COL2ROW or ROW2COL */ 44/* COL2ROW or ROW2COL */
45#define DIODE_DIRECTION ROW2COL 45#define DIODE_DIRECTION ROW2COL
46 46
47// #define BACKLIGHT_PIN B7
48// #define BACKLIGHT_BREATHING
49// #define BACKLIGHT_LEVELS 3
50
51/* Underlight configuration
52 */
53#define RGB_DI_PIN E2
54#define RGBLIGHT_ANIMATIONS
55#define RGBLED_NUM 20 // Number of LEDs
56#define RGBLIGHT_HUE_STEP 10
57#define RGBLIGHT_SAT_STEP 17
58#define RGBLIGHT_VAL_STEP 17
59
47/* define if matrix has ghost */ 60/* define if matrix has ghost */
48//#define MATRIX_HAS_GHOST 61//#define MATRIX_HAS_GHOST
49 62
@@ -55,19 +68,79 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
55/* Locking resynchronize hack */ 68/* Locking resynchronize hack */
56#define LOCKING_RESYNC_ENABLE 69#define LOCKING_RESYNC_ENABLE
57 70
58/* key combination for command */ 71/*
72 * Force NKRO
73 *
74 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
75 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
76 * makefile for this to work.)
77 *
78 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
79 * until the next keyboard reset.
80 *
81 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
82 * fully operational during normal computer usage.
83 *
84 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
85 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
86 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
87 * power-up.
88 *
89 */
90//#define FORCE_NKRO
91
92/*
93 * Magic Key Options
94 *
95 * Magic keys are hotkey commands that allow control over firmware functions of
96 * the keyboard. They are best used in combination with the HID Listen program,
97 * found here: https://www.pjrc.com/teensy/hid_listen.html
98 *
99 * The options below allow the magic key functionality to be changed. This is
100 * useful if your keyboard/keypad is missing keys and you want magic key support.
101 *
102 */
103
104/* key combination for magic key command */
59#define IS_COMMAND() ( \ 105#define IS_COMMAND() ( \
60 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ 106 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
61) 107)
62 108
63/* Underlight configuration 109/* control how magic key switches layers */
64 */ 110//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
65#define RGB_DI_PIN E2 111//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
66#define RGBLIGHT_ANIMATIONS 112//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
67#define RGBLED_NUM 20 // Number of LEDs 113
68#define RGBLIGHT_HUE_STEP 10 114/* override magic key keymap */
69#define RGBLIGHT_SAT_STEP 17 115//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
70#define RGBLIGHT_VAL_STEP 17 116//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
117//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
118//#define MAGIC_KEY_HELP1 H
119//#define MAGIC_KEY_HELP2 SLASH
120//#define MAGIC_KEY_DEBUG D
121//#define MAGIC_KEY_DEBUG_MATRIX X
122//#define MAGIC_KEY_DEBUG_KBD K
123//#define MAGIC_KEY_DEBUG_MOUSE M
124//#define MAGIC_KEY_VERSION V
125//#define MAGIC_KEY_STATUS S
126//#define MAGIC_KEY_CONSOLE C
127//#define MAGIC_KEY_LAYER0_ALT1 ESC
128//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
129//#define MAGIC_KEY_LAYER0 0
130//#define MAGIC_KEY_LAYER1 1
131//#define MAGIC_KEY_LAYER2 2
132//#define MAGIC_KEY_LAYER3 3
133//#define MAGIC_KEY_LAYER4 4
134//#define MAGIC_KEY_LAYER5 5
135//#define MAGIC_KEY_LAYER6 6
136//#define MAGIC_KEY_LAYER7 7
137//#define MAGIC_KEY_LAYER8 8
138//#define MAGIC_KEY_LAYER9 9
139//#define MAGIC_KEY_BOOTLOADER PAUSE
140//#define MAGIC_KEY_LOCK CAPS
141//#define MAGIC_KEY_EEPROM E
142//#define MAGIC_KEY_NKRO N
143//#define MAGIC_KEY_SLEEP_LED Z
71 144
72/* 145/*
73 * Feature disable options 146 * Feature disable options
@@ -87,4 +160,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
87//#define NO_ACTION_MACRO 160//#define NO_ACTION_MACRO
88//#define NO_ACTION_FUNCTION 161//#define NO_ACTION_FUNCTION
89 162
163/*
164 * MIDI options
165 */
166
167/* Prevent use of disabled MIDI features in the keymap */
168//#define MIDI_ENABLE_STRICT 1
169
170/* enable basic MIDI features:
171 - MIDI notes can be sent when in Music mode is on
172*/
173//#define MIDI_BASIC
174
175/* enable advanced MIDI features:
176 - MIDI notes can be added to the keymap
177 - Octave shift and transpose
178 - Virtual sustain, portamento, and modulation wheel
179 - etc.
180*/
181//#define MIDI_ADVANCED
182
183/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
184//#define MIDI_TONE_KEYCODE_OCTAVES 1
185
90#endif 186#endif
diff --git a/keyboards/phantom/rules.mk b/keyboards/phantom/rules.mk
index cb3274d73..23b42cf98 100644
--- a/keyboards/phantom/rules.mk
+++ b/keyboards/phantom/rules.mk
@@ -49,17 +49,21 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
49 49
50 50
51# Build Options 51# Build Options
52# comment out to disable the options. 52# change yes to no to disable
53# 53#
54BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) 54BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
55MOUSEKEY_ENABLE ?= no # Mouse keys(+4700) 55MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
56EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) 56EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
57CONSOLE_ENABLE ?= yes # Console for debug(+400) 57CONSOLE_ENABLE ?= no # Console for debug(+400)
58COMMAND_ENABLE ?= yes # Commands for debug and configuration 58COMMAND_ENABLE ?= yes # Commands for debug and configuration
59NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60RGBLIGHT_ENABLE ?=yes # Enable keyboard underlight functionality (+4870) 60SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
61BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality (+1150) 61# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
62MIDI_ENABLE ?= no # MIDI controls 62NKRO_ENABLE ?= yes # USB Nkey Rollover
63AUDIO_ENABLE ?= no 63BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality
64UNICODE_ENABLE ?= no # Unicode 64RGBLIGHT_ENABLE ?= yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
65BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID 65MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config)
66UNICODE_ENABLE ?= no # Unicode
67BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
68AUDIO_ENABLE ?= no # Audio output on port C6
69FAUXCLICKY_ENABLE ?= no # Use buzzer to emulate clicky switches