keymap.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include QMK_KEYBOARD_H
  2. extern keymap_config_t keymap_config;
  3. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  4. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  5. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  6. // entirely and just use numbers.
  7. #define _NUMPAD 0
  8. #define _LOWER 1
  9. #define LOWER LT(_LOWER, KC_PENT)
  10. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  11. /* Numpad
  12. * +-------+-------+-------+-------+
  13. * | 7 | 8 | 9 | - |
  14. * +-------+-------+-------+-------+
  15. * | 4 | 5 | 6 | + |
  16. * +-------+-------+-------+-------+
  17. * | 1 | 2 | 3 | / |
  18. * +-------+-------+-------+-------+
  19. * | | 0 | . | * |
  20. * +-------+-------+-------+-------+
  21. */
  22. [_NUMPAD] = LAYOUT_jotpad16 (
  23. KC_P7, KC_P8, KC_P9, KC_PMNS,
  24. KC_P4, KC_P5, KC_P6, KC_PPLS,
  25. KC_P1, KC_P2, KC_P3, KC_PSLS,
  26. LOWER, KC_P0, KC_PDOT,KC_PAST
  27. ),
  28. /* Lower */
  29. [_LOWER] = LAYOUT_jotpad16 (
  30. KC_NLCK,_______,_______,RESET ,
  31. _______,_______,_______,_______,
  32. _______,_______,_______,_______,
  33. _______,_______,_______,_______
  34. ),
  35. };