You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.1 KiB

  1. #pragma once
  2. #define LEADER_TIMEOUT 250
  3. #define LEADER_PER_KEY_TIMING
  4. #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
  5. # if defined(KEYBOARD_planck_light)
  6. # define RGB_DI_PIN A0
  7. # define RGBLED_NUM 13 // Number of LEDs
  8. # endif
  9. # define RGBLIGHT_HUE_STEP 12
  10. # define RGBLIGHT_SAT_STEP 12
  11. # define RGBLIGHT_VAL_STEP 12
  12. # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  13. # define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  14. # ifdef RGB_MATRIX_ENABLE
  15. # define RGBLIGHT_DISABLE_KEYCODES
  16. # endif
  17. #endif // RGBLIGHT_ENABLE
  18. #ifdef RGB_MATRIX_ENABLE
  19. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
  20. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
  21. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  22. // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  23. // #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
  24. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  25. # undef RGB_MATRIX_LED_PROCESS_LIMIT
  26. # undef RGB_MATRIX_LED_FLUSH_LIMIT
  27. #endif
  28. #if defined(KEYBOARD_planck_ez)
  29. # undef PRODUCT
  30. # define PRODUCT Bocaj Hacked Planck EZ
  31. #endif
  32. #define EEPROM_I2C_RM24C512C
  33. #define ENCODER_DIRECTION_FLIP
  34. /*
  35. * MIDI options
  36. */
  37. /* enable basic MIDI features:
  38. - MIDI notes can be sent when in Music mode is on
  39. */
  40. // #define MIDI_BASIC
  41. /* enable advanced MIDI features:
  42. - MIDI notes can be added to the keymap
  43. - Octave shift and transpose
  44. - Virtual sustain, portamento, and modulation wheel
  45. - etc.
  46. */
  47. //#define MIDI_ADVANCED
  48. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  49. //#define MIDI_TONE_KEYCODE_OCTAVES 2
  50. #define FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
  51. #define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
  52. #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
  53. /* default 3V ERM vibration motor voltage and library*/
  54. #if FB_ERM_LRA == 0
  55. # define RATED_VOLTAGE 3
  56. # define V_RMS 2.3
  57. # define V_PEAK 3.30
  58. /* Library Selection */
  59. # define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  60. /* default 2V LRA voltage and library */
  61. #elif FB_ERM_LRA == 1
  62. # define RATED_VOLTAGE 2
  63. # define V_RMS 2.0
  64. # define V_PEAK 2.85
  65. # define F_LRA 200
  66. /* Library Selection */
  67. # define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  68. #endif
  69. /* Control 1 register settings */
  70. #define DRIVE_TIME 25
  71. #define AC_COUPLE 0
  72. #define STARTUP_BOOST 1
  73. /* Control 2 Settings */
  74. #define BIDIR_INPUT 1
  75. #define BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
  76. #define SAMPLE_TIME 3
  77. #define BLANKING_TIME 1
  78. #define IDISS_TIME 1
  79. /* Control 3 settings */
  80. #define NG_THRESH 2
  81. #define ERM_OPEN_LOOP 1
  82. #define SUPPLY_COMP_DIS 0
  83. #define DATA_FORMAT_RTO 0
  84. #define LRA_DRIVE_MODE 0
  85. #define N_PWM_ANALOG 0
  86. #define LRA_OPEN_LOOP 0
  87. /* Control 4 settings */
  88. #define ZC_DET_TIME 0
  89. #define AUTO_CAL_TIME 3