]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/hifumi/keymaps/default/keymap.c
Update KBD67 readme so that it mentions the KBD65 PCB (#5143)
[qmk_firmware.git] / keyboards / hifumi / keymaps / default / keymap.c
1 /* Copyright 2019 zk-phi
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16 #include QMK_KEYBOARD_H
17
18 #ifdef RGBLIGHT_ENABLE
19 //Following line allows macro to read current RGB settings
20 extern rgblight_config_t rgblight_config;
21 #endif
22
23 enum layers {
24     DEFAULT,
25     RAISE,
26     LOWER,
27     ADJUST
28 };
29
30 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31     [DEFAULT] = LAYOUT(
32         LT(RAISE, KC_F5), KC_UP,   LT(LOWER, KC_PSCR),
33         KC_LEFT,          KC_DOWN, KC_RIGHT
34     ),
35     [RAISE] = LAYOUT(
36         _______, KC_PGUP, MO(ADJUST),
37         KC_HOME, KC_PGDN, KC_END
38     ),
39     [LOWER] = LAYOUT(
40         MO(ADJUST), _______, _______,
41         _______,    _______, _______
42     ),
43     [ADJUST] = LAYOUT(
44         _______,        RGB_TOG,        _______,
45         RGB_MODE_SNAKE, RGB_MODE_PLAIN, RGB_HUI
46     )
47 };