keymap.c 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Copyright 2022 Ramon Imbao
  2. *
  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. *
  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. *
  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. #include QMK_KEYBOARD_H
  17. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. /*
  19. * ┌───┬───┬───┬───┐
  20. * │F13│F14│F15│F16│
  21. * ├───┼───┼───┼───┤
  22. * │Num│ / │ * │ - │
  23. * ├───┼───┼───┼───┤
  24. * │ 7 │ 8 │ 9 │ │
  25. * ├───┼───┼───┤ + │
  26. * │ 4 │ 5 │ 6 │ │
  27. * ├───┼───┼───┼───┤
  28. * │ 1 │ 2 │ 3 │ │
  29. * ├───┴───┼───┤Ent│
  30. * │ 0 │ . │ │
  31. * └───────┴───┴───┘
  32. */
  33. [0] = LAYOUT_all(
  34. KC_F13, KC_F14, KC_F15, KC_F16,
  35. KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
  36. KC_P7, KC_P8, KC_P9, KC_PPLS,
  37. KC_P4, KC_P5, KC_P6, KC_PPLS,
  38. KC_P1, KC_P2, KC_P3, KC_PENT,
  39. KC_P0, KC_P0, KC_PDOT, KC_PENT
  40. ),
  41. [1] = LAYOUT_all(
  42. _______, _______, _______, _______,
  43. _______, _______, _______, _______,
  44. _______, _______, _______, _______,
  45. _______, _______, _______, _______,
  46. _______, _______, _______, _______,
  47. _______, _______, _______, _______
  48. ),
  49. [2] = LAYOUT_all(
  50. _______, _______, _______, _______,
  51. _______, _______, _______, _______,
  52. _______, _______, _______, _______,
  53. _______, _______, _______, _______,
  54. _______, _______, _______, _______,
  55. _______, _______, _______, _______
  56. ),
  57. [3] = LAYOUT_all(
  58. _______, _______, _______, _______,
  59. _______, _______, _______, _______,
  60. _______, _______, _______, _______,
  61. _______, _______, _______, _______,
  62. _______, _______, _______, _______,
  63. _______, _______, _______, _______
  64. ),
  65. };
  66. #if defined(ENCODER_MAP_ENABLE)
  67. const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
  68. [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_BRID, KC_BRIU), ENCODER_CCW_CW(KC_DOWN, KC_UP ), ENCODER_CCW_CW(KC_PGDN, KC_PGUP) },
  69. [1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
  70. [2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
  71. [3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
  72. };
  73. #endif