]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ivy/keymaps/default/keymap.c
[Keyboard] Added IVY macropad (#6211)
[qmk_firmware.git] / keyboards / ivy / keymaps / default / keymap.c
1 #include QMK_KEYBOARD_H
2
3 extern keymap_config_t keymap_config;
4
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
10 enum pad_layers {
11   _L1,
12   _FUNC
13 };
14
15 // Defines for task manager and such
16 #define CALTDEL LCTL(LALT(KC_DEL))
17 #define TSKMGR LCTL(LSFT(KC_ESC))
18
19 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 /* Layer 1
22  * ,------.
23  * |  1   |
24  * |------|
25  * |  2   |
26  * |------|
27  * |  FN  |
28  * `------'
29  */
30 [_L1] = LAYOUT( \
31     KC_1, \
32     KC_2, \
33     MO(_FUNC)  \
34 ),
35
36 [_FUNC] = LAYOUT( \
37     CALTDEL, \
38     TSKMGR, \
39     _______ \
40 )
41
42 };
43
44 void matrix_init_user(void) {
45
46 }