logo

qmk_firmware

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

config.h (2434B)


  1. #pragma once
  2. //Audio
  3. #undef AUDIO_VOICES
  4. #undef AUDIO_PIN
  5. #define AUDIO_PIN A5
  6. #define AUDIO_PIN_ALT A4
  7. #define AUDIO_PIN_ALT_AS_NEGATIVE
  8. #ifdef AUDIO_ENABLE
  9. #define STARTUP_SONG SONG(ONE_UP_SOUND)
  10. // #define STARTUP_SONG SONG(NO_SOUND)
  11. #define AUDIO_CLICKY
  12. /* to enable clicky on startup */
  13. //#define AUDIO_CLICKY_ON
  14. #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
  15. #endif
  16. // configure oled driver for the 128x32 oled
  17. #define OLED_UPDATE_INTERVAL 33 // ~30fps
  18. /*
  19. * Feature disable options
  20. * These options are also useful to firmware size reduction.
  21. */
  22. /* disable debug print */
  23. //#define NO_DEBUG
  24. /* disable print */
  25. //#define NO_PRINT
  26. /* disable action features */
  27. //#define NO_ACTION_LAYER
  28. //#define NO_ACTION_TAPPING
  29. //#define NO_ACTION_ONESHOT
  30. /* Haptic Driver initialization settings
  31. * Feedback Control Settings */
  32. #define DRV2605L_FB_ERM_LRA 1 /* For ERM:0 or LRA:1*/
  33. #define DRV2605L_FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
  34. #define DRV2605L_FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
  35. /* default 3V ERM vibration motor voltage and library*/
  36. #if DRV2605L_FB_ERM_LRA == 0
  37. #define DRV2605L_RATED_VOLTAGE 3
  38. #define DRV2605L_V_RMS 2.3
  39. #define DRV2605L_V_PEAK 3.30
  40. /* Library Selection */
  41. #define DRV2605L_LIBRARY 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  42. /* default 2V LRA voltage and library */
  43. #elif DRV2605L_FB_ERM_LRA == 1
  44. #define DRV2605L_RATED_VOLTAGE 2
  45. #define DRV2605L_V_RMS 2.0
  46. #define DRV2605L_V_PEAK 2.85
  47. #define DRV2605L_F_LRA 200
  48. /* Library Selection */
  49. #define DRV2605L_LIBRARY 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
  50. #endif
  51. /* Control 1 register settings */
  52. #define DRV2605L_DRIVE_TIME 25
  53. #define DRV2605L_AC_COUPLE 0
  54. #define DRV2605L_STARTUP_BOOST 1
  55. /* Control 2 Settings */
  56. #define DRV2605L_BIDIR_INPUT 1
  57. #define DRV2605L_BRAKE_STAB 1 /* Loopgain is reduced when braking is almost complete to improve stability */
  58. #define DRV2605L_SAMPLE_TIME 3
  59. #define DRV2605L_BLANKING_TIME 1
  60. #define DRV2605L_IDISS_TIME 1
  61. /* Control 3 settings */
  62. #define DRV2605L_NG_THRESH 2
  63. #define DRV2605L_ERM_OPEN_LOOP 1
  64. #define DRV2605L_SUPPLY_COMP_DIS 0
  65. #define DRV2605L_DATA_FORMAT_RTO 0
  66. #define DRV2605L_LRA_DRIVE_MODE 0
  67. #define DRV2605L_N_PWM_ANALOG 0
  68. #define DRV2605L_LRA_OPEN_LOOP 0
  69. /* Control 4 settings */
  70. #define DRV2605L_ZC_DET_TIME 0
  71. #define DRV2605L_AUTO_CAL_TIME 3
  72. #define SOLENOID_PIN A14