keymap.c 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* Copyright 2021 Batuhan Başerdem
  2. * <baserdem.batuhan@gmail.com> @bbaserdem
  3. *
  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. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include QMK_KEYBOARD_H
  18. #include "bbaserdem.h"
  19. /* D layout
  20. * ┌───┬───┬───┬───┬───┐        ┌───┬───┬───┬───┬───┐
  21. * │' "│, <│. >│ P │ Y │        │ F │ G │ C │ R │ L │
  22. * ├───┼───┼───┼───┼───┤        ├───┼───┼───┼───┼───┤
  23. * │ A │ O │ E │ U │ I │        │ D │ H │ T │ N │ S │
  24. * ├───┼───┼───┼───┼───┤        ├───┼───┼───┼───┼───┤
  25. * │; :│ Q │ J │ K │ X │        │ B │ M │ W │ V │ Z │
  26. * └───┴───┴───┼───┼───┼───┐ ┌───┼───┼───┼───┴───┴───┘
  27. *            │Del│Tab│Spc│ │Ent│Esc│Bsp│
  28. *            └───┴───┴───┘ └───┴───┴───┘
  29. */
  30. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  31. [_BASE] = LAYOUT_split_3x5_3_wrapper(
  32. _BL1_5_,_BR1_5_,
  33. _BL2_5_,_BR2_5_,
  34. _BL3_5_,_BR3_5_,
  35. _BL4_3_,_BR4_3_
  36. ),
  37. [_CHAR] = LAYOUT_split_3x5_3_wrapper(
  38. _CL1_5_,_CR1_5_,
  39. _CL2_5_,_CR2_5_,
  40. _CL3_5_,_CR3_5_,
  41. _CL4_3_,_CR4_3_
  42. ),
  43. [_GAME] = LAYOUT_split_3x5_3_wrapper(
  44. _GA1_5_,___5___,
  45. _GA2_5_,___5___,
  46. _GA3_5_,___5___,
  47. _GA4_3_,___3___
  48. ),
  49. [_MEDI] = LAYOUT_split_3x5_3_wrapper(
  50. ___5___,_ME1_5_,
  51. ___5___,_ME2_5_,
  52. ___5___,_ME3_5_,
  53. ___3___,_ME4_3_
  54. ),
  55. [_NAVI] = LAYOUT_split_3x5_3_wrapper(
  56. ___5___,_NA1_5_,
  57. ___5___,_NA2_5_,
  58. ___5___,_NA3_5_,
  59. ___3___,_NA4_3_
  60. ),
  61. [_SYMB] = LAYOUT_split_3x5_3_wrapper(
  62. ___5___,_SY1_5_,
  63. ___5___,_SY2_5_,
  64. ___5___,_SY3_5_,
  65. ___3___,_SY4_3_
  66. ),
  67. [_NUMB] = LAYOUT_split_3x5_3_wrapper(
  68. _NU1_5_,___5___,
  69. _NU2_5_,___5___,
  70. _NU3_5_,___5___,
  71. _NU4_3_,___3___
  72. ),
  73. [_FUNC] = LAYOUT_split_3x5_3_wrapper(
  74. _FU1_5_,___5___,
  75. _FU2_5_,___5___,
  76. _FU3_5_,___5___,
  77. _FU4_3_,___3___
  78. ),
  79. [_MOUS] = LAYOUT_split_3x5_3_wrapper(
  80. _MO1_5_,___5___,
  81. _MO2_5_,___5___,
  82. _MO3_5_,___5___,
  83. _MO4_3_,___3___
  84. ),
  85. [_MUSI] = LAYOUT_split_3x5_3_wrapper(
  86. _MU_10_,
  87. _MU_10_,
  88. _MU_10_,
  89. _MUL_3_,_MUR_3_
  90. )
  91. };
  92. // RGB Matrix configuration
  93. #ifdef RGB_MATRIX_ENABLE
  94. // crkbd
  95. #ifdef KEYBOARD_crkbd_rev1
  96. /* This is left-right for crkbd indicator light
  97. * ┌──┬──┬──┬──┬──┐      ┌──┬──┬──┬──┬──┐
  98. * │23│18│17│10│09│      │33│34│41│42│47│
  99. * ├02┼──┼01┼──┼00┤      ├24┼──┼25┼──┼26┤
  100. * │22│19│16│11│08│     │32│35│40│43│46│
  101. * ├03┼──┼04┼──┼05┤      ├29┼──┼28┼──┼27┤
  102. * │21│20│15│12│07│     │31│36│39│44│45│
  103. * └──┴──┴──┼──┼──┼──┐┌──┼──┼──┼──┴──┴──┘
  104. *          │14│13│06││30│37│38│
  105. *          └──┴──┴──┘└──┴──┴──┘
  106. */
  107. // End of differentiations
  108. #endif // KEYBOARD_crkbd_rev1
  109. // End of code for the RGB_MATRIX setup
  110. #endif // RGB_MATRIX_ENABLE