]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/boston_meetup/2019/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / boston_meetup / 2019 / config.h
1 #pragma once
2
3 /* USB Device descriptor parameter */
4 #define DEVICE_VER 0x07E3
5
6 #undef MATRIX_ROWS
7 #undef MATRIX_COLS
8 /* key matrix size */
9 #define MATRIX_ROWS 4
10 #define MATRIX_COLS 4
11
12 /*
13  * Keyboard Matrix Assignments
14  *
15  * Change this to how you wired your keyboard
16  * COLS: AVR pins used for columns, left to right
17  * ROWS: AVR pins used for rows, top to bottom
18  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
19  *                  ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
20  *
21 */
22
23 #undef MATRIX_ROW_PINS
24 #undef MATRIX_COL_PINS
25
26 #define MATRIX_ROW_PINS { A3, B8, B9, B1 }
27 #define MATRIX_COL_PINS { A7, A8, B2, B10 }
28
29 #define ENCODERS_PAD_A { B13 }
30 #define ENCODERS_PAD_B { B14 }
31
32 //Audio
33 #undef AUDIO_VOICES
34 #undef C6_AUDIO
35
36 #ifdef AUDIO_ENABLE
37     #define STARTUP_SONG SONG(ONE_UP_SOUND)
38     // #define STARTUP_SONG SONG(NO_SOUND)
39
40 #define AUDIO_CLICKY
41   /* to enable clicky on startup */
42   //#define AUDIO_CLICKY_ON
43 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
44 #endif
45
46 //configure qwiic micro_oled driver for the 128x32 oled
47 #ifdef QWIIC_MICRO_OLED_ENABLE
48
49 #undef I2C_ADDRESS_SA0_1
50 #define I2C_ADDRESS_SA0_1 0b0111100
51 #define LCDWIDTH      128
52 #define LCDHEIGHT     32
53 #define micro_oled_rotate_180
54
55 #endif
56 /*
57  * Keyboard Matrix Assignments
58  *
59  * Change this to how you wired your keyboard
60  * COLS: AVR pins used for columns, left to right
61  * ROWS: AVR pins used for rows, top to bottom
62  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
63  *                  ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
64  *
65 */
66
67 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
68 #define DEBOUNCE 6
69
70 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
71 //#define LOCKING_SUPPORT_ENABLE
72 /* Locking resynchronize hack */
73 //#define LOCKING_RESYNC_ENABLE
74
75 /*
76  * Force NKRO
77  *
78  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
79  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
80  * makefile for this to work.)
81  *
82  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
83  * until the next keyboard reset.
84  *
85  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
86  * fully operational during normal computer usage.
87  *
88  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
89  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
90  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
91  * power-up.
92  *
93  */
94 //#define FORCE_NKRO
95
96 /*
97  * Feature disable options
98  *  These options are also useful to firmware size reduction.
99  */
100
101 /* disable debug print */
102 //#define NO_DEBUG
103
104 /* disable print */
105 //#define NO_PRINT
106
107 /* disable action features */
108 //#define NO_ACTION_LAYER
109 //#define NO_ACTION_TAPPING
110 //#define NO_ACTION_ONESHOT
111 //#define NO_ACTION_MACRO
112 //#define NO_ACTION_FUNCTION
113 /*
114  * MIDI options
115  */
116
117 /* Prevent use of disabled MIDI features in the keymap */
118 //#define MIDI_ENABLE_STRICT 1
119
120 /* enable basic MIDI features:
121    - MIDI notes can be sent when in Music mode is on
122 */
123
124 #define MIDI_BASIC
125
126 /* enable advanced MIDI features:
127    - MIDI notes can be added to the keymap
128    - Octave shift and transpose
129    - Virtual sustain, portamento, and modulation wheel
130    - etc.
131 */
132 //#define MIDI_ADVANCED
133
134 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
135 //#define MIDI_TONE_KEYCODE_OCTAVES 2
136
137 /* Haptic Driver initialization settings
138  * Feedback Control Settings */
139 #define FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
140 #define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
141 #define FB_LOOPGAIN 1 /* For  Low:0, Medium:1, High:2, Very High:3 */
142
143 /* default 3V ERM vibration motor voltage and library*/
144 #if FB_ERM_LRA == 0
145 #define RATED_VOLTAGE 3
146 #define V_RMS 2.3
147 #define V_PEAK 3.30
148 /* Library Selection */
149 #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
150
151 /* default 2V LRA voltage and library */
152 #elif FB_ERM_LRA == 1
153 #define RATED_VOLTAGE 2
154 #define V_RMS 2.0
155 #define V_PEAK 2.85
156 #define F_LRA 200
157 /* Library Selection */
158 #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
159
160 #endif
161
162 /* Control 1 register settings */
163 #define DRIVE_TIME 25
164 #define AC_COUPLE 0
165 #define STARTUP_BOOST 1
166
167 /* Control 2 Settings */
168 #define BIDIR_INPUT 1
169 #define BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
170 #define SAMPLE_TIME 3
171 #define BLANKING_TIME 1
172 #define IDISS_TIME 1
173
174 /* Control 3 settings */
175 #define NG_THRESH 2
176 #define ERM_OPEN_LOOP 1
177 #define SUPPLY_COMP_DIS 0
178 #define DATA_FORMAT_RTO 0
179 #define LRA_DRIVE_MODE 0
180 #define N_PWM_ANALOG 0
181 #define LRA_OPEN_LOOP 0
182 /* Control 4 settings */
183 #define ZC_DET_TIME 0
184 #define AUTO_CAL_TIME 3
185
186 #define RGBLIGHT_ANIMATIONS
187
188 #define RGBLED_NUM 10
189 #define RGB_DI_PIN B5
190 #define DRIVER_LED_TOTAL RGBLED_NUM
191
192 #define RGB_MATRIX_KEYPRESSES
193
194 #define SOLENOID_PIN A14