logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (3347B)


  1. /*
  2. * Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. //Audio
  19. #undef AUDIO_VOICES
  20. #undef AUDIO_PIN
  21. #define AUDIO_PIN A5
  22. #define AUDIO_PIN_ALT A4
  23. #define AUDIO_PIN_ALT_AS_NEGATIVE
  24. #ifdef AUDIO_ENABLE
  25. #define STARTUP_SONG SONG(PLANCK_SOUND)
  26. // #define STARTUP_SONG SONG(NO_SOUND)
  27. #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
  28. SONG(COLEMAK_SOUND), \
  29. SONG(DVORAK_SOUND) \
  30. }
  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 oled driver for the 128x32 oled
  37. #define OLED_UPDATE_INTERVAL 33 // ~30fps
  38. /*
  39. * Feature disable options
  40. * These options are also useful to firmware size reduction.
  41. */
  42. /* disable debug print */
  43. //#define NO_DEBUG
  44. /* disable print */
  45. //#define NO_PRINT
  46. /* disable action features */
  47. //#define NO_ACTION_LAYER
  48. //#define NO_ACTION_TAPPING
  49. //#define NO_ACTION_ONESHOT
  50. /* Haptic Driver initialization settings
  51. * Feedback Control Settings */
  52. #define DRV2605L_FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
  53. #define DRV2605L_FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
  54. #define DRV2605L_FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
  55. /* default 3V ERM vibration motor voltage and library*/
  56. #if DRV2605L_FB_ERM_LRA == 0
  57. #define DRV2605L_RATED_VOLTAGE 3
  58. #define DRV2605L_V_RMS 2.3
  59. #define DRV2605L_V_PEAK 3.30
  60. /* Library Selection */
  61. #define DRV2605L_LIBRARY 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  62. /* default 2V LRA voltage and library */
  63. #elif DRV2605L_FB_ERM_LRA == 1
  64. #define DRV2605L_RATED_VOLTAGE 2
  65. #define DRV2605L_V_RMS 2.0
  66. #define DRV2605L_V_PEAK 2.85
  67. #define DRV2605L_F_LRA 200
  68. /* Library Selection */
  69. #define DRV2605L_LIBRARY 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  70. #endif
  71. /* Control 1 register settings */
  72. #define DRV2605L_DRIVE_TIME 25
  73. #define DRV2605L_AC_COUPLE 0
  74. #define DRV2605L_STARTUP_BOOST 1
  75. /* Control 2 Settings */
  76. #define DRV2605L_BIDIR_INPUT 1
  77. #define DRV2605L_BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
  78. #define DRV2605L_SAMPLE_TIME 3
  79. #define DRV2605L_BLANKING_TIME 1
  80. #define DRV2605L_IDISS_TIME 1
  81. /* Control 3 settings */
  82. #define DRV2605L_NG_THRESH 2
  83. #define DRV2605L_ERM_OPEN_LOOP 1
  84. #define DRV2605L_SUPPLY_COMP_DIS 0
  85. #define DRV2605L_DATA_FORMAT_RTO 0
  86. #define DRV2605L_LRA_DRIVE_MODE 0
  87. #define DRV2605L_N_PWM_ANALOG 0
  88. #define DRV2605L_LRA_OPEN_LOOP 0
  89. /* Control 4 settings */
  90. #define DRV2605L_ZC_DET_TIME 0
  91. #define DRV2605L_AUTO_CAL_TIME 3
  92. #define SOLENOID_PIN A14