config.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  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. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x5644
  19. #define PRODUCT_ID 0x534D
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Viktus_Design
  22. #define PRODUCT SP_Mini
  23. /* key matrix size */
  24. // Rows are doubled-up
  25. #define MATRIX_ROWS 10
  26. #define MATRIX_COLS 8
  27. // wiring of each half
  28. #define MATRIX_ROW_PINS { F0, B5, B4, D7, D6 }
  29. #define MATRIX_COL_PINS { B6, C6, C7, D4, D2, D3, D5 } // no B7 on left hand
  30. #define MATRIX_ROW_PINS_RIGHT { F0, B5, B4, D7, D6 }
  31. #define MATRIX_COL_PINS_RIGHT { B6, C6, C7, D4, D2, D3, D5, B7 }
  32. #define DIODE_DIRECTION COL2ROW
  33. /* Split Defines */
  34. #define SPLIT_USB_DETECT
  35. #define MASTER_LEFT
  36. #define USE_I2C
  37. /* define if matrix has ghost */
  38. //#define MATRIX_HAS_GHOST
  39. /* Set 0 if debouncing isn't needed */
  40. #define DEBOUNCE 5
  41. /* ws2812 RGB LED */
  42. #define RGB_DI_PIN E6
  43. #define RGBLIGHT_EFFECT_BREATHING
  44. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  45. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  46. #define RGBLIGHT_EFFECT_SNAKE
  47. #define RGBLIGHT_EFFECT_KNIGHT
  48. #define RGBLIGHT_EFFECT_CHRISTMAS
  49. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  50. #define RGBLIGHT_EFFECT_RGB_TEST
  51. #define RGBLIGHT_EFFECT_ALTERNATING
  52. #define RGBLIGHT_EFFECT_TWINKLE
  53. //#define RGBLIGHT_SPLIT
  54. #define RGBLED_NUM 24 // Number of LEDs
  55. #define RGBLED_SPLIT { 12, 12 }
  56. #define ENCODERS_PAD_A {F4}
  57. #define ENCODERS_PAD_B {F1}
  58. //#define ENCODERS_PAD_A_RIGHT {F4}
  59. //#define ENCODERS_PAD_B_RIGHT {F1}
  60. #define ENCODER_RESOLUTIONS { 8, 8 }
  61. /*
  62. * Feature disable options
  63. * These options are also useful to firmware size reduction.
  64. */
  65. /* disable debug print */
  66. // #define NO_DEBUG
  67. /* disable print */
  68. // #define NO_PRINT
  69. /* disable action features */
  70. //#define NO_ACTION_LAYER
  71. //#define NO_ACTION_TAPPING
  72. //#define NO_ACTION_ONESHOT
  73. //#define NO_ACTION_MACRO
  74. //#define NO_ACTION_FUNCTION