keymap.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include QMK_KEYBOARD_H
  2. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  3. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  4. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  5. // entirely and just use numbers.
  6. #define _BL 0
  7. #define _FL 1
  8. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  9. /* Keymap _BL: (Base Layer) Default Layer
  10. * .-------------------.
  11. * |NL F| /| *| -|
  12. * |-------------------|
  13. * | 7| 8| 9| |
  14. * |--------------| |
  15. * | 4| 5| 6| +|
  16. * |-------------------|
  17. * | 1| 2| 3| |
  18. * |--------------| |
  19. * | 0| .| Ent|
  20. * '-------------------'
  21. */
  22. [_BL] = LAYOUT_numpad_5x4(
  23. LT(_FL, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS,
  24. KC_P7, KC_P8, KC_P9,
  25. KC_P4, KC_P5, KC_P6, KC_PPLS,
  26. KC_P1, KC_P2, KC_P3,
  27. KC_P0, KC_PDOT, KC_PENT
  28. ),
  29. /* Keymap _FL: Function Layer
  30. * .-------------------.
  31. * |NL F| | | Fn0|
  32. * |-------------------|
  33. * | | Fn4| | |
  34. * |--------------| |
  35. * | Fn3|BL_S| Fn2| Fn6|
  36. * |-------------------|
  37. * | | Fn5| | |
  38. * |--------------| |
  39. * | Fn1| | Fn7|
  40. * '-------------------'
  41. */
  42. [_FL] = LAYOUT_numpad_5x4(
  43. LT(_FL, KC_NLCK), _______, _______, RGB_TOG,
  44. _______, RGB_SAI, _______,
  45. RGB_HUD, BL_STEP, RGB_HUI, RGB_VAI,
  46. _______, RGB_SAD, _______,
  47. RGB_MOD, _______, RGB_VAD
  48. )
  49. };