config.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. Copyright 2021 Salicylic_Acid
  3. Copyright 2021 3araht
  4. Copyright 2022 jun10000
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* key matrix size */
  18. #define MATRIX_ROWS 10
  19. #define MATRIX_COLS 8
  20. // wiring of each half
  21. #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
  22. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, E6 }
  23. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  24. #define LOCKING_SUPPORT_ENABLE
  25. /* Locking resynchronize hack */
  26. #define LOCKING_RESYNC_ENABLE
  27. /* ws2812 RGB LED */
  28. #define RGB_DI_PIN D3
  29. #ifndef RGBLED_NUM
  30. #define RGBLED_NUM 69
  31. #define RGBLIGHT_LED_MAP { \
  32. 0, 1, 2, 3, \
  33. 8, 7, 6, 5, 4, \
  34. 9,10,11,12,13, \
  35. 18,17,16,15,14, \
  36. 19,20,21,22,23, \
  37. 28,27,26,25,24, \
  38. 29,30,31,32,33, \
  39. 38,37,36,35,34, \
  40. 39,40,41,42,43, \
  41. 48,47,46,45,44, \
  42. 49,50,51,52,53, \
  43. 58,57,56,55,54, \
  44. 59,60,61,62,63, \
  45. 68,67,66,65,64 \
  46. }
  47. #define RGBLIGHT_SLEEP
  48. #endif
  49. #define RGBLIGHT_EFFECT_BREATHING
  50. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  51. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  52. #define RGBLIGHT_EFFECT_SNAKE
  53. #define RGBLIGHT_EFFECT_KNIGHT
  54. #define RGBLIGHT_EFFECT_CHRISTMAS
  55. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  56. #define RGBLIGHT_EFFECT_RGB_TEST
  57. #define RGBLIGHT_EFFECT_ALTERNATING
  58. #define RGBLIGHT_EFFECT_TWINKLE
  59. #ifndef IOS_DEVICE_ENABLE
  60. #define RGBLIGHT_LIMIT_VAL 90
  61. #define RGBLIGHT_VAL_STEP 17
  62. #else
  63. #define RGBLIGHT_LIMIT_VAL 30
  64. #define RGBLIGHT_VAL_STEP 4
  65. #endif
  66. #define RGBLIGHT_HUE_STEP 10
  67. #define RGBLIGHT_SAT_STEP 17
  68. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  69. // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
  70. // 120 RGBoff, OLEDoff
  71. // 120 OLED
  72. // 330 RGB 6
  73. // 300 RGB 32
  74. // 310 OLED & RGB 32
  75. #define USB_MAX_POWER_CONSUMPTION 400
  76. #else
  77. // fix iPhone and iPad power adapter issue
  78. // iOS device need lessthan 100
  79. #define USB_MAX_POWER_CONSUMPTION 100
  80. #endif
  81. #define TAP_CODE_DELAY 10