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 NUMBER_OF_ENCODERS 1
30 #define ENCODERS_PAD_A { B13 }
31 #define ENCODERS_PAD_B { B14 }
38 #define STARTUP_SONG SONG(ONE_UP_SOUND)
39 // #define STARTUP_SONG SONG(NO_SOUND)
42 /* to enable clicky on startup */
43 //#define AUDIO_CLICKY_ON
44 #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
47 //configure qwiic micro_oled driver for the 128x32 oled
48 #ifdef QWIIC_MICRO_OLED_ENABLE
50 #undef I2C_ADDRESS_SA0_1
51 #define I2C_ADDRESS_SA0_1 0b0111100
54 #define micro_oled_rotate_180
58 * Keyboard Matrix Assignments
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)
68 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
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
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.)
83 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
84 * until the next keyboard reset.
86 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
87 * fully operational during normal computer usage.
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
98 * Feature disable options
99 * These options are also useful to firmware size reduction.
102 /* disable debug print */
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
118 /* Prevent use of disabled MIDI features in the keymap */
119 //#define MIDI_ENABLE_STRICT 1
121 /* enable basic MIDI features:
122 - MIDI notes can be sent when in Music mode is on
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
133 //#define MIDI_ADVANCED
135 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
136 //#define MIDI_TONE_KEYCODE_OCTAVES 2
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 */
144 /* default 3V ERM vibration motor voltage and library*/
146 #define RATED_VOLTAGE 3
149 /* Library Selection */
150 #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
152 /* default 2V LRA voltage and library */
153 #elif FB_ERM_LRA == 1
154 #define RATED_VOLTAGE 2
158 /* Library Selection */
159 #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
163 /* Control 1 register settings */
164 #define DRIVE_TIME 25
166 #define STARTUP_BOOST 1
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
175 /* Control 3 settings */
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
187 #define RGBLIGHT_ANIMATIONS
189 #define RGBLED_NUM 10
190 #define RGB_DI_PIN B5
191 #define DRIVER_LED_TOTAL RGBLED_NUM
193 #define RGB_MATRIX_KEYPRESSES
195 #define SOLENOID_PIN A14