config.h 5.0 KB

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