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