]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/launchpad/keymaps/default_rgb/keymap.c
Update KBD67 readme so that it mentions the KBD65 PCB (#5143)
[qmk_firmware.git] / keyboards / launchpad / keymaps / default_rgb / keymap.c
1 // Below layout is based upon /u/That-Canadian's planck layout
2 #include QMK_KEYBOARD_H
3
4 extern keymap_config_t keymap_config;
5
6 // Each layer gets a name for readability, which is then used in the keymap matrix below.
7 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
8 // Layer names don't all need to be of the same length, obviously, and you can also skip them
9 // entirely and just use numbers.
10 #define _QWERTY 0
11 #define _RGB 1
12 #define _FUNC 15
13
14 // Defines for task manager and such
15 #define CALTDEL LCTL(LALT(KC_DEL))
16 #define TSKMGR LCTL(LSFT(KC_ESC))
17
18 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19
20     /* Qwerty
21      * ,-------------.
22      * |   1  |  2   |
23      * |------+------|
24      * |   3  |  4   |
25      * |------+------|
26      * |   5  |  6   |
27      * |------+------|
28      * | FUNC | RGB  |
29      * `-------------'
30      */
31     [_QWERTY] = LAYOUT( \
32         KC_1,      KC_2, \
33         KC_3,      KC_4, \
34         KC_5,      KC_6, \
35         MO(_FUNC), TG(_RGB) \
36       ),
37
38     /* RGB
39      * ,-------------.
40      * | Mode-| Mode+|
41      * |------+------|
42      * | HUE- | HUE+ |
43      * |------+------|
44      * | SAT- | SAT+ |
45      * |------+------|
46      * |RGBTOG|      |
47      * `-------------'
48      */
49     [_RGB] = LAYOUT( \
50         RGB_RMOD, RGB_MOD, \
51         RGB_HUD,  RGB_HUI, \
52         RGB_SAD,  RGB_SAI, \
53         RGB_TOG,  KC_TRNS \
54       ),
55
56     /* Function
57      * ,-------------.
58      * |   Q  |CALDEL|
59      * |------+------|
60      * |   A  |TSKMGR|
61      * |------+------|
62      * |   Z  |  X   |
63      * |------+------|
64      * |      |  C   |
65      * `-------------'
66      */
67     [_FUNC] = LAYOUT( \
68         KC_Q,    CALTDEL, \
69         KC_A,    TSKMGR, \
70         KC_Z,    KC_X, \
71         _______, KC_C \
72       )
73
74 };
75
76 void matrix_init_user(void) {}