config.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. Copyright 2019 Thomas Baart
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0xFEED
  18. #define PRODUCT_ID 0xF75B
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER splitkb
  21. #define PRODUCT Zima
  22. /* key matrix size */
  23. #define MATRIX_ROWS 4
  24. #define MATRIX_COLS 3
  25. /*
  26. * Keyboard Matrix Assignments
  27. */
  28. #define DIRECT_PINS { \
  29. { C6, D6, D5 }, \
  30. { C7, F7, D4 }, \
  31. { E6, F5, F6 }, \
  32. { F0, F1, F4 } \
  33. }
  34. #define UNUSED_PINS
  35. #define ENCODERS_PAD_A { B4 }
  36. #define ENCODERS_PAD_B { D7 }
  37. // #define QMK_ESC_OUTPUT B7
  38. // #define QMK_ESC_INPUT C6
  39. // #define QMK_SPEAKER B6
  40. #define AUDIO_PIN B6
  41. #define AUDIO_CLICKY
  42. #define NO_MUSIC_MODE
  43. #define RGB_DI_PIN B5
  44. #define RGBLED_NUM 5
  45. #define RGBLIGHT_HUE_STEP 8
  46. #define RGBLIGHT_SAT_STEP 8
  47. #define RGBLIGHT_VAL_STEP 8
  48. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  49. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  50. #define RGBLIGHT_EFFECT_BREATHING
  51. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  52. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  53. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  54. #define RGBLIGHT_EFFECT_TWINKLE
  55. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  56. #define DEBOUNCE 5
  57. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  58. //#define MATRIX_HAS_GHOST
  59. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  60. // #define LOCKING_SUPPORT_ENABLE
  61. /* Locking resynchronize hack */
  62. // #define LOCKING_RESYNC_ENABLE
  63. #define FB_ERM_LRA 0
  64. #define FB_BRAKEFACTOR 3 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
  65. #define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
  66. /* Please refer to your datasheet for the optimal setting for your specific motor. */
  67. #define RATED_VOLTAGE 3
  68. #define V_PEAK 5
  69. #define DRV_GREETING alert_750ms
  70. #define DRV_MODE_DEFAULT buzz
  71. // EC11K encoders have a different resolution than other EC11 encoders.
  72. // When using the default resolution of 4, if you notice your encoder skipping
  73. // every other tick, lower the resolution to 2.
  74. #define ENCODER_RESOLUTION 2