config.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. #ifndef REV1_CONFIG_H
  16. #define REV1_CONFIG_H
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x3060
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER RGBKB
  22. #define PRODUCT Sol
  23. #define DESCRIPTION "An RGB, split, ortho-esque keyboard"
  24. #define PREVENT_STUCK_MODIFIERS
  25. #define TAPPING_FORCE_HOLD
  26. #define TAPPING_TERM 150
  27. #define USE_I2C
  28. #define USE_SERIAL
  29. #define USE_SERIAL_PD3
  30. /* Select hand configuration */
  31. #define MASTER_LEFT
  32. // #define MASTER_RIGHT
  33. // #define EE_HANDS
  34. /* Select rows configuration */
  35. // Rows are 4 or 5
  36. // #define HELIX_ROWS 5 see ./rules.mk
  37. /* key matrix size */
  38. // Rows are doubled-up
  39. #define MATRIX_ROWS 12
  40. #define MATRIX_ROW_PINS { C6, B6, B5, B4, D7, E6}
  41. // wiring of each half
  42. #define MATRIX_COLS 7
  43. #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 }
  44. // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
  45. /* define if matrix has ghost */
  46. //#define MATRIX_HAS_GHOST
  47. /* number of backlight levels */
  48. // #define BACKLIGHT_LEVELS 3
  49. /* Set 0 if debouncing isn't needed */
  50. #define DEBOUNCING_DELAY 5
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. //#define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. //#define LOCKING_RESYNC_ENABLE
  55. /* ws2812 RGB LED */
  56. #define RGB_DI_PIN B3
  57. #define RGBLIGHT_TIMER
  58. //#define RGBLED_NUM 12 // Number of LEDs. see ./keymaps/default/config.h
  59. #define ws2812_PORTREG PORTD
  60. #define ws2812_DDRREG DDRD
  61. #define DRIVER_COUNT 1
  62. // #define RGB_MATRIX_KEYPRESSES
  63. #define BACKLIGHT_PIN B7
  64. #define BACKLIGHT_LEVELS 5
  65. #ifdef LED_MIRRORED
  66. #define RGBLED_NUM 35
  67. #else
  68. #define RGBLED_NUM 70
  69. #endif
  70. #define DRIVER_LED_TOTAL RGBLED_NUM
  71. #define RGBLIGHT_RAINBOW_SWIRL_RANGE 1950
  72. #ifdef IOS_DEVICE_ENABLE
  73. #define RGBLIGHT_LIMIT_VAL 40
  74. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 40
  75. #elif RGBLIGHT_FULL_POWER
  76. #define RGBLIGHT_LIMIT_VAL 255
  77. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
  78. #else
  79. #define RGBLIGHT_LIMIT_VAL 120
  80. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
  81. #endif
  82. #define RGBLIGHT_VAL_STEP (RGBLIGHT_LIMIT_VAL / 10)
  83. #define RGBLIGHT_HUE_STEP 10
  84. #define RGBLIGHT_SAT_STEP 17
  85. #define RGBLIGHT_ANIMATIONS
  86. #define LED_HITS_TO_REMEMBER 5
  87. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  88. // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
  89. // 120 RGBoff, OLEDoff
  90. // 120 OLED
  91. // 330 RGB 6
  92. // 300 RGB 32
  93. // 310 OLED & RGB 32
  94. #define USB_MAX_POWER_CONSUMPTION 500
  95. #else
  96. // fix iPhone and iPad power adapter issue
  97. // iOS device need lessthan 100
  98. #define USB_MAX_POWER_CONSUMPTION 100
  99. #endif
  100. /*
  101. * Feature disable options
  102. * These options are also useful to firmware size reduction.
  103. */
  104. /* disable debug print */
  105. // #define NO_DEBUG
  106. /* disable print */
  107. // #define NO_PRINT
  108. /* disable action features */
  109. //#define NO_ACTION_LAYER
  110. //#define NO_ACTION_TAPPING
  111. //#define NO_ACTION_ONESHOT
  112. //#define NO_ACTION_MACRO
  113. //#define NO_ACTION_FUNCTION
  114. #endif