diff options
Diffstat (limited to 'keyboards/boston_meetup/2019/config.h')
-rw-r--r-- | keyboards/boston_meetup/2019/config.h | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/keyboards/boston_meetup/2019/config.h b/keyboards/boston_meetup/2019/config.h new file mode 100644 index 000000000..80896242e --- /dev/null +++ b/keyboards/boston_meetup/2019/config.h | |||
@@ -0,0 +1,167 @@ | |||
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 AUDIO_PIN | ||
35 | #define AUDIO_PIN A5 | ||
36 | #define AUDIO_PIN_ALT A4 | ||
37 | #define AUDIO_PIN_ALT_AS_NEGATIVE | ||
38 | |||
39 | #ifdef AUDIO_ENABLE | ||
40 | #define STARTUP_SONG SONG(ONE_UP_SOUND) | ||
41 | // #define STARTUP_SONG SONG(NO_SOUND) | ||
42 | |||
43 | #define AUDIO_CLICKY | ||
44 | /* to enable clicky on startup */ | ||
45 | //#define AUDIO_CLICKY_ON | ||
46 | #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f | ||
47 | #endif | ||
48 | |||
49 | // configure oled driver for the 128x32 oled | ||
50 | #define OLED_UPDATE_INTERVAL 33 // ~30fps | ||
51 | |||
52 | /* | ||
53 | * Keyboard Matrix Assignments | ||
54 | * | ||
55 | * Change this to how you wired your keyboard | ||
56 | * COLS: AVR pins used for columns, left to right | ||
57 | * ROWS: AVR pins used for rows, top to bottom | ||
58 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
59 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
60 | * | ||
61 | */ | ||
62 | |||
63 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
64 | #define DEBOUNCE 6 | ||
65 | |||
66 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
67 | //#define LOCKING_SUPPORT_ENABLE | ||
68 | /* Locking resynchronize hack */ | ||
69 | //#define LOCKING_RESYNC_ENABLE | ||
70 | |||
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 | * Feature disable options | ||
94 | * These options are also useful to firmware size reduction. | ||
95 | */ | ||
96 | |||
97 | /* disable debug print */ | ||
98 | //#define NO_DEBUG | ||
99 | |||
100 | /* disable print */ | ||
101 | //#define NO_PRINT | ||
102 | |||
103 | /* disable action features */ | ||
104 | //#define NO_ACTION_LAYER | ||
105 | //#define NO_ACTION_TAPPING | ||
106 | //#define NO_ACTION_ONESHOT | ||
107 | //#define NO_ACTION_MACRO | ||
108 | //#define NO_ACTION_FUNCTION | ||
109 | |||
110 | /* Haptic Driver initialization settings | ||
111 | * Feedback Control Settings */ | ||
112 | #define FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/ | ||
113 | #define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */ | ||
114 | #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */ | ||
115 | |||
116 | /* default 3V ERM vibration motor voltage and library*/ | ||
117 | #if FB_ERM_LRA == 0 | ||
118 | #define RATED_VOLTAGE 3 | ||
119 | #define V_RMS 2.3 | ||
120 | #define V_PEAK 3.30 | ||
121 | /* Library Selection */ | ||
122 | #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */ | ||
123 | |||
124 | /* default 2V LRA voltage and library */ | ||
125 | #elif FB_ERM_LRA == 1 | ||
126 | #define RATED_VOLTAGE 2 | ||
127 | #define V_RMS 2.0 | ||
128 | #define V_PEAK 2.85 | ||
129 | #define F_LRA 200 | ||
130 | /* Library Selection */ | ||
131 | #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */ | ||
132 | |||
133 | #endif | ||
134 | |||
135 | /* Control 1 register settings */ | ||
136 | #define DRIVE_TIME 25 | ||
137 | #define AC_COUPLE 0 | ||
138 | #define STARTUP_BOOST 1 | ||
139 | |||
140 | /* Control 2 Settings */ | ||
141 | #define BIDIR_INPUT 1 | ||
142 | #define BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */ | ||
143 | #define SAMPLE_TIME 3 | ||
144 | #define BLANKING_TIME 1 | ||
145 | #define IDISS_TIME 1 | ||
146 | |||
147 | /* Control 3 settings */ | ||
148 | #define NG_THRESH 2 | ||
149 | #define ERM_OPEN_LOOP 1 | ||
150 | #define SUPPLY_COMP_DIS 0 | ||
151 | #define DATA_FORMAT_RTO 0 | ||
152 | #define LRA_DRIVE_MODE 0 | ||
153 | #define N_PWM_ANALOG 0 | ||
154 | #define LRA_OPEN_LOOP 0 | ||
155 | /* Control 4 settings */ | ||
156 | #define ZC_DET_TIME 0 | ||
157 | #define AUTO_CAL_TIME 3 | ||
158 | |||
159 | #define RGBLIGHT_ANIMATIONS | ||
160 | |||
161 | #define RGBLED_NUM 10 | ||
162 | #define RGB_DI_PIN B5 | ||
163 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
164 | |||
165 | #define RGB_MATRIX_KEYPRESSES | ||
166 | |||
167 | #define SOLENOID_PIN A14 | ||