]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/staryu/keymaps/default/keymap.c
Fixing Ergodox_EZ rgb_led initialization
[qmk_firmware.git] / keyboards / staryu / keymaps / default / keymap.c
1 /*
2 Copyright 2018 Kenneth Aloysius
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 #include QMK_KEYBOARD_H
18
19 enum layers {
20   _LAYER0,
21   _LAYER1,
22   _LAYER2,
23   _LAYER3
24 };
25
26
27 const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
28     /* Keymap 0
29      * ,-----------.
30      * |   |Up |Fn0|
31      * |---+---+---|
32      * |Lef|Dow|Rig|
33      * `-----------'
34      */
35     LAYOUT( KC_UP,  TO(_LAYER1), KC_LEFT,KC_DOWN,KC_RIGHT ),
36     /* Keymap 1
37      * ,-----------.
38      * |   |PgU|Fn1|
39      * |---+---+---|
40      * |Hom|PgD|End|
41      * `-----------'
42      */
43     LAYOUT( KC_PGUP,TO(_LAYER2), KC_HOME,KC_PGDN,KC_END  ),
44     /* Keymap 2
45      * ,-----------.
46      * |   |Sel|Fn2|
47      * |---+---+---|
48      * |Pre|Pla|Nex|
49      * `-----------'
50      */
51     LAYOUT( KC_MSEL,TO(_LAYER3), KC_MPRV,KC_MPLY,KC_MNXT ),
52     /* Keymap 3
53      * ,-----------.
54      * |   |MsU|Fn3|
55      * |---+---+---|
56      * |MsL|MsD|MsR|
57      * `-----------'
58      */
59     LAYOUT( KC_MS_U,TO(_LAYER0), KC_MS_L,KC_MS_D,KC_MS_R ),
60     // /* Keymap 4
61     //  * ,-----------.
62     //  * |   |Fn6|Fn4|
63     //  * |---+---+---|
64     //  * |Fn7|Fn5|Fn8|
65     //  * `-----------'
66     //  */
67     // LAYOUT( FN6, FN4, FN7, FN5, FN8  ),
68 };
69
70 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
71   return MACRO_NONE ;
72 }
73
74 void matrix_init_user(void) {
75 }
76
77 void matrix_scan_user(void) {
78 }
79
80 void led_set_user(uint8_t usb_led) {
81 }