2 * Copyright 2018 Jack Humbert <jack.humb@gmail.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 /* USB Device descriptor parameter */
22 #define DEVICE_VER 0x0003
28 #define MATRIX_COLS 15
31 * Keyboard Matrix Assignments
33 * Change this to how you wired your keyboard
34 * COLS: AVR pins used for columns, left to right
35 * ROWS: AVR pins used for rows, top to bottom
36 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
37 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 #undef MATRIX_ROW_PINS
41 #undef MATRIX_COL_PINS
43 #define MATRIX_ROW_PINS { C15, C14, A10, A9, A8 }
44 #define MATRIX_COL_PINS { B8, B2, B10, A0, A1, A2, B0, A3, B1, A6, A7, B12, C13, B11, B9 }
47 #define NUMBER_OF_ENCODERS 1
48 #define ENCODERS_PAD_A { B13 }
49 #define ENCODERS_PAD_B { B14 }
57 #define STARTUP_SONG SONG(PLANCK_SOUND)
58 // #define STARTUP_SONG SONG(NO_SOUND)
60 #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
61 SONG(COLEMAK_SOUND), \
65 /* to enable clicky on startup */
66 //#define AUDIO_CLICKY_ON
67 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
70 //configure qwiic micro_oled driver for the 128x32 oled
71 #ifdef QWIIC_MICRO_OLED_ENABLE
73 #undef I2C_ADDRESS_SA0_1
74 #define I2C_ADDRESS_SA0_1 0b0111100
77 #define micro_oled_rotate_180
81 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
84 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
85 //#define LOCKING_SUPPORT_ENABLE
86 /* Locking resynchronize hack */
87 //#define LOCKING_RESYNC_ENABLE
92 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
93 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
94 * makefile for this to work.)
96 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
97 * until the next keyboard reset.
99 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
100 * fully operational during normal computer usage.
102 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
103 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
104 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
111 * Feature disable options
112 * These options are also useful to firmware size reduction.
115 /* disable debug print */
121 /* disable action features */
122 //#define NO_ACTION_LAYER
123 //#define NO_ACTION_TAPPING
124 //#define NO_ACTION_ONESHOT
125 //#define NO_ACTION_MACRO
126 //#define NO_ACTION_FUNCTION
131 /* Prevent use of disabled MIDI features in the keymap */
132 //#define MIDI_ENABLE_STRICT 1
134 /* enable basic MIDI features:
135 - MIDI notes can be sent when in Music mode is on
140 /* enable advanced MIDI features:
141 - MIDI notes can be added to the keymap
142 - Octave shift and transpose
143 - Virtual sustain, portamento, and modulation wheel
146 //#define MIDI_ADVANCED
148 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
149 //#define MIDI_TONE_KEYCODE_OCTAVES 2
151 /* Haptic Driver initialization settings
152 * Feedback Control Settings */
153 #define FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
154 #define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
155 #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
157 /* default 3V ERM vibration motor voltage and library*/
159 #define RATED_VOLTAGE 3
162 /* Library Selection */
163 #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
165 /* default 2V LRA voltage and library */
166 #elif FB_ERM_LRA == 1
167 #define RATED_VOLTAGE 2
171 /* Library Selection */
172 #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
176 /* Control 1 register settings */
177 #define DRIVE_TIME 25
179 #define STARTUP_BOOST 1
181 /* Control 2 Settings */
182 #define BIDIR_INPUT 1
183 #define BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
184 #define SAMPLE_TIME 3
185 #define BLANKING_TIME 1
188 /* Control 3 settings */
190 #define ERM_OPEN_LOOP 1
191 #define SUPPLY_COMP_DIS 0
192 #define DATA_FORMAT_RTO 0
193 #define LRA_DRIVE_MODE 0
194 #define N_PWM_ANALOG 0
195 #define LRA_OPEN_LOOP 0
196 /* Control 4 settings */
197 #define ZC_DET_TIME 0
198 #define AUTO_CAL_TIME 3
200 #define RGBLIGHT_ANIMATIONS
202 #define RGBLED_NUM 10
203 #define RGB_DI_PIN B5
204 #define DRIVER_LED_TOTAL RGBLED_NUM
206 // #define RGB_MATRIX_KEYPRESSES
208 #define SOLENOID_PIN A14