You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

  1. #include QMK_KEYBOARD_H
  2. #ifdef RGBLIGHT_ENABLE
  3. #include "rgblight.h"
  4. #endif
  5. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  6. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  7. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  8. // entirely and just use numbers.
  9. #define _BL 0
  10. #define _FL 1
  11. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  12. /* Keymap _BL: (Base Layer) Default Layer
  13. * ,-------------------.
  14. * |Esc |Setp| - | = |
  15. * |----|----|----|----|
  16. * | F1 | F2 | F3 | F4 |
  17. * |----|----|----|----|
  18. * | 7 | 8 | 9 | - |
  19. * |----|----|----|----|
  20. * | 4 | 5 | 6 | LF |
  21. * |----|----|----|----|
  22. * | 1 | 2 | 3 | \ |
  23. * |----|----|----|----|
  24. * |Left|Down| Up |Rght|
  25. * `-------------------'
  26. */
  27. [_BL] = LAYOUT_ortho_6x4(
  28. KC_ESC, KC_TAB, KC_MINS,KC_EQL, \
  29. KC_F1, KC_F2, KC_F3, KC_F4, \
  30. KC_P7, KC_P8, KC_P9, KC_PMNS, \
  31. KC_P4, KC_P5, KC_P6, KC_PENT, \
  32. KC_P1, KC_P2, KC_P3, KC_BSLS, \
  33. KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
  34. ),
  35. /* Keymap _FL: Function Layer
  36. * ,-------------------.
  37. * |Esc |TAB |BS | = |
  38. * |----|----|----|----|
  39. * | NL | / | * | - |
  40. * |----|----|----|----|
  41. * | 7 | 8 | 9 | |
  42. * |----|----|----|RST |
  43. * | 4 | 5 | 6 | |
  44. * |----|----|----|----|
  45. * | 1 | 2 | 3 | |
  46. * |----|----|----| En |
  47. * | 0 |./FN| |
  48. * `-------------------'
  49. */
  50. [_FL] = LAYOUT_ortho_6x4(
  51. KC_ESC, KC_TAB, KC_BSPC, KC_PEQL, \
  52. KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, \
  53. KC_P7, KC_P8, KC_P9, QK_BOOT, \
  54. KC_P4, KC_P5, KC_P6, KC_PENT, \
  55. KC_P1, KC_P2, KC_P3, KC_PENT, \
  56. KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
  57. ),
  58. };