aboutsummaryrefslogtreecommitdiff
path: root/keyboards/silverbullet44/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/silverbullet44/config.h')
-rw-r--r--keyboards/silverbullet44/config.h294
1 files changed, 294 insertions, 0 deletions
diff --git a/keyboards/silverbullet44/config.h b/keyboards/silverbullet44/config.h
new file mode 100644
index 000000000..6872f5fb4
--- /dev/null
+++ b/keyboards/silverbullet44/config.h
@@ -0,0 +1,294 @@
1/*
2Copyright 2019 SwanMatch
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x16C0
24#define PRODUCT_ID 0x27DB
25#define DEVICE_VER 0x0001
26#define MANUFACTURER SwanMatch
27#define PRODUCT SilverBullet44
28#define DESCRIPTION Metalical Keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 8
32#define MATRIX_COLS 6
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43*/
44#define MATRIX_ROW_PINS { D4, C6, D7, E6 }
45#define MATRIX_COL_PINS { B3, B1, F7, F6, F5, F4 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/*
52 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
53 */
54#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
55#define MASTER_RIGHT
56
57// #define BACKLIGHT_PIN B7
58// #define BACKLIGHT_BREATHING
59// #define BACKLIGHT_LEVELS 3
60
61#define RGB_DI_PIN D3
62#ifdef RGB_DI_PIN
63 //#define RGBLIGHT_SPLIT
64 #define RGBLED_SPLIT {26, 26}
65 #define RGBLED_NUM 52
66 #ifdef RGB_MATRIX_ENABLE
67 #define DRIVER_LED_TOTAL 52
68 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
69
70 #define RGB_MATRIX_HUE_STEP 8
71 #define RGB_MATRIX_SAT_STEP 8
72 #define RGB_MATRIX_VAL_STEP 8
73 #define RGB_MATRIX_SPD_STEP 8
74
75 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
76
77 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
78
79 #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_TYPING_HEATMAP
80 #else
81 #define RGBLIGHT_LED_MAP { 0,1,2,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,3,4,5,6, \
82 26,27,28,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,29,30,31,32 }
83 #define RGBLIGHT_HUE_STEP 8
84 #define RGBLIGHT_SAT_STEP 8
85 #define RGBLIGHT_VAL_STEP 8
86 #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
87 //#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
88/*== all animations enable ==*/
89// #define RGBLIGHT_ANIMATIONS
90/*== or choose animations ==*/
91 #define RGBLIGHT_EFFECT_BREATHING
92 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
93 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
94 #define RGBLIGHT_EFFECT_SNAKE
95// #define RGBLIGHT_EFFECT_KNIGHT
96// #define RGBLIGHT_EFFECT_CHRISTMAS
97// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
98// #define RGBLIGHT_EFFECT_RGB_TEST
99// #define RGBLIGHT_EFFECT_ALTERNATING
100/*== customize breathing effect ==*/
101 /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
102 #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
103 /*==== use exp() and sin() ====*/
104 #define RGBLIGHT_EFFECT_BREATHE_CENTER 2 // 1 to 2.7
105 #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
106/*== customize snake effect ==*/
107 #define RGBLIGHT_EFFECT_SNAKE_LENGTH RGBLED_NUM
108/*== customize knight effect ==*/
109 #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 6
110 #endif
111#endif
112
113/* Audio */
114#ifdef AUDIO_ENABLE
115 #define B6_AUDIO
116 #define STARTUP_SONG SONG(STARTUP_SOUND)
117 #define AUDIO_CLICKY
118 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.0f
119#endif
120
121/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
122#define DEBOUNCE 10
123
124//#define RETRO_TAPPING
125
126#ifdef MOUSEKEY_ENABLE
127 #define MOUSEKEY_INTERVAL 20
128 #define MOUSEKEY_MAX_SPEED 5
129 #define MOUSEKEY_TIME_TO_MAX 60
130#endif
131
132/* define if matrix has ghost (lacks anti-ghosting diodes) */
133//#define MATRIX_HAS_GHOST
134
135/* number of backlight levels */
136
137/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
138//#define LOCKING_SUPPORT_ENABLE
139/* Locking resynchronize hack */
140//#define LOCKING_RESYNC_ENABLE
141
142/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
143 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
144 */
145// #define GRAVE_ESC_CTRL_OVERRIDE
146
147/*
148 * Force NKRO
149 *
150 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
151 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
152 * makefile for this to work.)
153 *
154 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
155 * until the next keyboard reset.
156 *
157 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
158 * fully operational during normal computer usage.
159 *
160 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
161 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
162 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
163 * power-up.
164 *
165 */
166//#define FORCE_NKRO
167
168/*
169 * Magic Key Options
170 *
171 * Magic keys are hotkey commands that allow control over firmware functions of
172 * the keyboard. They are best used in combination with the HID Listen program,
173 * found here: https://www.pjrc.com/teensy/hid_listen.html
174 *
175 * The options below allow the magic key functionality to be changed. This is
176 * useful if your keyboard/keypad is missing keys and you want magic key support.
177 *
178 */
179
180/* key combination for magic key command */
181/* defined by default; to change, uncomment and set to the combination you want */
182// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
183
184/* control how magic key switches layers */
185//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
186//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
187//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
188
189/* override magic key keymap */
190//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
191//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
192//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
193//#define MAGIC_KEY_HELP H
194//#define MAGIC_KEY_HELP_ALT SLASH
195//#define MAGIC_KEY_DEBUG D
196//#define MAGIC_KEY_DEBUG_MATRIX X
197//#define MAGIC_KEY_DEBUG_KBD K
198//#define MAGIC_KEY_DEBUG_MOUSE M
199//#define MAGIC_KEY_VERSION V
200//#define MAGIC_KEY_STATUS S
201//#define MAGIC_KEY_CONSOLE C
202//#define MAGIC_KEY_LAYER0 0
203//#define MAGIC_KEY_LAYER0_ALT GRAVE
204//#define MAGIC_KEY_LAYER1 1
205//#define MAGIC_KEY_LAYER2 2
206//#define MAGIC_KEY_LAYER3 3
207//#define MAGIC_KEY_LAYER4 4
208//#define MAGIC_KEY_LAYER5 5
209//#define MAGIC_KEY_LAYER6 6
210//#define MAGIC_KEY_LAYER7 7
211//#define MAGIC_KEY_LAYER8 8
212//#define MAGIC_KEY_LAYER9 9
213//#define MAGIC_KEY_BOOTLOADER B
214//#define MAGIC_KEY_BOOTLOADER_ALT ESC
215//#define MAGIC_KEY_LOCK CAPS
216//#define MAGIC_KEY_EEPROM E
217//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
218//#define MAGIC_KEY_NKRO N
219//#define MAGIC_KEY_SLEEP_LED Z
220
221/*
222 * Feature disable options
223 * These options are also useful to firmware size reduction.
224 */
225
226/* disable debug print */
227//#define NO_DEBUG
228
229/* disable print */
230//#define NO_PRINT
231
232/* disable action features */
233//#define NO_ACTION_LAYER
234//#define NO_ACTION_TAPPING
235//#define NO_ACTION_ONESHOT
236#ifndef LINK_TIME_OPTIMIZATION_ENABLE
237# define NO_ACTION_MACRO
238# define NO_ACTION_FUNCTION
239#endif
240
241/*
242 * MIDI options
243 */
244
245/* Prevent use of disabled MIDI features in the keymap */
246//#define MIDI_ENABLE_STRICT 1
247
248/* enable basic MIDI features:
249 - MIDI notes can be sent when in Music mode is on
250*/
251//#define MIDI_BASIC
252
253/* enable advanced MIDI features:
254 - MIDI notes can be added to the keymap
255 - Octave shift and transpose
256 - Virtual sustain, portamento, and modulation wheel
257 - etc.
258*/
259//#define MIDI_ADVANCED
260
261/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
262//#define MIDI_TONE_KEYCODE_OCTAVES 1
263
264/*
265 * HD44780 LCD Display Configuration
266 */
267/*
268#define LCD_LINES 2 //< number of visible lines of the display
269#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
270
271#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
272
273#if LCD_IO_MODE
274#define LCD_PORT PORTB //< port for the LCD lines
275#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
276#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
277#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
278#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
279#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
280#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
281#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
282#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
283#define LCD_RS_PORT LCD_PORT //< port for RS line
284#define LCD_RS_PIN 3 //< pin for RS line
285#define LCD_RW_PORT LCD_PORT //< port for RW line
286#define LCD_RW_PIN 2 //< pin for RW line
287#define LCD_E_PORT LCD_PORT //< port for Enable line
288#define LCD_E_PIN 1 //< pin for Enable line
289#endif
290*/
291
292/* Bootmagic Lite key configuration */
293// #define BOOTMAGIC_LITE_ROW 0
294// #define BOOTMAGIC_LITE_COLUMN 0