]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/tritium_numpad/keymaps/max/keymap.c
[Keyboard] Added 3d printable, handwired numpad by tritiumfusion (#6125)
[qmk_firmware.git] / keyboards / handwired / tritium_numpad / keymaps / max / keymap.c
1 #include QMK_KEYBOARD_H
2
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 _BL 0
8 #define _FL 1
9
10 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11   /* Keymap _BL: (Base Layer) Default Layer
12    * ,-------------------.
13    * |Esc |Setp| -  | =  |
14    * |----|----|----|----|
15    * | F1 | F2 | F3 | F4 |
16    * |----|----|----|----|
17    * | 7  | 8  | 9  |  - |
18    * |----|----|----|----|
19    * | 4  | 5  | 6  | LF |
20    * |----|----|----|----|
21    * | 1  | 2  | 3  | \  |
22    * |----|----|----|----|
23    * |Left|Down| Up |Rght|
24    * `-------------------'
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
36   /* Keymap _FL: Function Layer
37    * ,-------------------.
38    * |Esc |TAB |BS  | =  |
39    * |----|----|----|----|
40    * | NL | /  | *  | -  |
41    * |----|----|----|----|
42    * | 7  | 8  | 9  |    |
43    * |----|----|----|RST |
44    * | 4  | 5  | 6  |    |
45    * |----|----|----|----|
46    * | 1  | 2  | 3  |    |
47    * |----|----|----| En |
48    * |   0     |./FN|    |
49    * `-------------------'
50    */
51   [_FL] = LAYOUT_ortho_6x4(
52     KC_ESC,  KC_TAB,  KC_BSPC, KC_PEQL, 
53     KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, 
54     KC_P7,   KC_P8,   KC_P9,   RESET,   
55     KC_P4,   KC_P5,   KC_P6,   KC_PENT, 
56     KC_P1,   KC_P2,   KC_P3,   KC_PENT, 
57     KC_LEFT, KC_DOWN, KC_UP,   KC_RIGHT
58   ),
59 };