3 /* USB Device descriptor parameter */
4 #define DEVICE_VER 0x07E3
13 * Keyboard Matrix Assignments
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)
23 #undef MATRIX_ROW_PINS
24 #undef MATRIX_COL_PINS
26 #define MATRIX_ROW_PINS { A3, B8, B9, B1 }
27 #define MATRIX_COL_PINS { A7, A8, B2, B10 }
29 #define ENCODERS_PAD_A { B13 }
30 #define ENCODERS_PAD_B { B14 }
37 #define STARTUP_SONG SONG(ONE_UP_SOUND)
38 // #define STARTUP_SONG SONG(NO_SOUND)
41 /* to enable clicky on startup */
42 //#define AUDIO_CLICKY_ON
43 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
46 //configure qwiic micro_oled driver for the 128x32 oled
47 #ifdef QWIIC_MICRO_OLED_ENABLE
49 #undef I2C_ADDRESS_SA0_1
50 #define I2C_ADDRESS_SA0_1 0b0111100
53 #define micro_oled_rotate_180
57 * Keyboard Matrix Assignments
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)
67 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
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
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.)
82 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
83 * until the next keyboard reset.
85 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
86 * fully operational during normal computer usage.
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
97 * Feature disable options
98 * These options are also useful to firmware size reduction.
101 /* disable debug print */
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
117 /* Prevent use of disabled MIDI features in the keymap */
118 //#define MIDI_ENABLE_STRICT 1
120 /* enable basic MIDI features:
121 - MIDI notes can be sent when in Music mode is on
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
132 //#define MIDI_ADVANCED
134 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
135 //#define MIDI_TONE_KEYCODE_OCTAVES 2
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 */
143 /* default 3V ERM vibration motor voltage and library*/
145 #define RATED_VOLTAGE 3
148 /* Library Selection */
149 #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
151 /* default 2V LRA voltage and library */
152 #elif FB_ERM_LRA == 1
153 #define RATED_VOLTAGE 2
157 /* Library Selection */
158 #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
162 /* Control 1 register settings */
163 #define DRIVE_TIME 25
165 #define STARTUP_BOOST 1
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
174 /* Control 3 settings */
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
186 #define RGBLIGHT_ANIMATIONS
188 #define RGBLED_NUM 10
189 #define RGB_DI_PIN B5
190 #define DRIVER_LED_TOTAL RGBLED_NUM
192 #define RGB_MATRIX_KEYPRESSES
194 #define SOLENOID_PIN A14