config.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #pragma once
  2. #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
  3. # define RGB_DI_PIN A0
  4. # define RGBLED_NUM 13 // Number of LEDs
  5. # define RGBLIGHT_ANIMATIONS
  6. # define RGBLIGHT_HUE_STEP 12
  7. # define RGBLIGHT_SAT_STEP 12
  8. # define RGBLIGHT_VAL_STEP 12
  9. # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  10. # define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  11. # ifdef RGB_MATRIX_ENABLE
  12. # define RGBLIGHT_DISABLE_KEYCODES
  13. # endif
  14. #endif // RGBLIGHT_ENABLE
  15. #ifdef RGB_MATRIX_ENABLE
  16. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
  17. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
  18. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  19. // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  20. // #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
  21. # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
  22. # undef RGB_MATRIX_LED_PROCESS_LIMIT
  23. # undef RGB_MATRIX_LED_FLUSH_LIMIT
  24. #endif
  25. #if defined(KEYBOARD_lets_split_rev2)
  26. # define USE_SERIAL
  27. # undef USE_I2C
  28. # define EE_HANDS
  29. #endif
  30. #if !defined(KEYBOARD_planck_light)
  31. # ifdef RGBLIGHT_ENABLE
  32. # define NO_MUSIC_MODE
  33. # endif // RGBLIGHT_ENABLE
  34. #else
  35. # undef QMK_ESC_OUTPUT
  36. # define QMK_ESC_OUTPUT E6 // usually COL
  37. # undef QMK_ESC_INPUT
  38. # define QMK_ESC_INPUT B0 // usually ROW
  39. # undef QMK_LED
  40. # define QMK_LED D6
  41. # undef QMK_SPEAKER
  42. # define QMK_SPEAKER B5
  43. # define SOLENOID_PIN A1
  44. #endif // KEYBOARD_planck_light
  45. #if defined(KEYBOARD_planck)
  46. # undef PRODUCT
  47. # if defined(KEYBOARD_planck_light)
  48. # define PRODUCT Drashna Hacked RGB Beacon(Planck Light)
  49. # elif defined(KEYBOARD_planck_rev6)
  50. # define PRODUCT Drashna Hacked Planck Rev6
  51. # elif defined(KEYBOARD_planck_ez)
  52. # define PRODUCT Drashna Hacked Planck EZ
  53. # endif
  54. #endif
  55. /*
  56. * MIDI options
  57. */
  58. /* Prevent use of disabled MIDI features in the keymap */
  59. //#define MIDI_ENABLE_STRICT 1
  60. /* enable basic MIDI features:
  61. - MIDI notes can be sent when in Music mode is on
  62. */
  63. // #define MIDI_BASIC
  64. /* enable advanced MIDI features:
  65. - MIDI notes can be added to the keymap
  66. - Octave shift and transpose
  67. - Virtual sustain, portamento, and modulation wheel
  68. - etc.
  69. */
  70. //#define MIDI_ADVANCED
  71. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  72. //#define MIDI_TONE_KEYCODE_OCTAVES 2
  73. #define FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
  74. #define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
  75. #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
  76. /* default 3V ERM vibration motor voltage and library*/
  77. #if FB_ERM_LRA == 0
  78. #define RATED_VOLTAGE 3
  79. #define V_RMS 2.3
  80. #define V_PEAK 3.30
  81. /* Library Selection */
  82. #define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  83. /* default 2V LRA voltage and library */
  84. #elif FB_ERM_LRA == 1
  85. #define RATED_VOLTAGE 2
  86. #define V_RMS 2.0
  87. #define V_PEAK 2.85
  88. #define F_LRA 200
  89. /* Library Selection */
  90. #define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  91. #endif
  92. /* Control 1 register settings */
  93. #define DRIVE_TIME 25
  94. #define AC_COUPLE 0
  95. #define STARTUP_BOOST 1
  96. /* Control 2 Settings */
  97. #define BIDIR_INPUT 1
  98. #define BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
  99. #define SAMPLE_TIME 3
  100. #define BLANKING_TIME 1
  101. #define IDISS_TIME 1
  102. /* Control 3 settings */
  103. #define NG_THRESH 2
  104. #define ERM_OPEN_LOOP 1
  105. #define SUPPLY_COMP_DIS 0
  106. #define DATA_FORMAT_RTO 0
  107. #define LRA_DRIVE_MODE 0
  108. #define N_PWM_ANALOG 0
  109. #define LRA_OPEN_LOOP 0
  110. /* Control 4 settings */
  111. #define ZC_DET_TIME 0
  112. #define AUTO_CAL_TIME 3