logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (1096B)


  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. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  5. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  6. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  7. // entirely and just use numbers.
  8. #define _NUMPAD 0
  9. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  10. /* Numpad
  11. * +-------+-------+-------+-------+
  12. * | 7 | 8 | 9 | - |
  13. * +-------+-------+-------+-------+
  14. * | 4 | 5 | 6 | + |
  15. * +-------+-------+-------+-------+
  16. * | 1 | 2 | 3 | enter |
  17. * +-------+-------+-------+-------+
  18. * | 0 | . | / | * |
  19. * +-------+-------+-------+-------+
  20. */
  21. [_NUMPAD] = LAYOUT_ortho_4x4(
  22. KC_P7, KC_P8, KC_P9, KC_MINS,
  23. KC_P4, KC_P5, KC_P6, KC_PLUS,
  24. KC_P1, KC_P2, KC_P3, KC_PENT,
  25. KC_P0, KC_PDOT,KC_PSLS,KC_ASTR
  26. ),
  27. };