keymap.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // This is the canonical layout file for the Quantum project. If you want to add another keyboard,
  2. // this is the style you want to emulate.
  3. #include QMK_KEYBOARD_H
  4. extern keymap_config_t keymap_config;
  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 _NUMPAD 0
  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 | enter |
  18. * +-------+-------+-------+-------+
  19. * | 0 | . | / | * |
  20. * +-------+-------+-------+-------+
  21. */
  22. [_NUMPAD] = LAYOUT_ortho_4x4(
  23. KC_P7, KC_P8, KC_P9, KC_MINS,
  24. KC_P4, KC_P5, KC_P6, KC_PLUS,
  25. KC_P1, KC_P2, KC_P3, KC_PENT,
  26. KC_P0, KC_PDOT,KC_PSLS,KC_ASTR
  27. ),
  28. };