diff options
Diffstat (limited to 'keyboards/basekeys/slice/rev1_rgb/rev1_rgb.h')
-rw-r--r-- | keyboards/basekeys/slice/rev1_rgb/rev1_rgb.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/keyboards/basekeys/slice/rev1_rgb/rev1_rgb.h b/keyboards/basekeys/slice/rev1_rgb/rev1_rgb.h new file mode 100644 index 000000000..fdc533158 --- /dev/null +++ b/keyboards/basekeys/slice/rev1_rgb/rev1_rgb.h | |||
@@ -0,0 +1,98 @@ | |||
1 | /* Copyright 2020 2Moons | ||
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 | #pragma once | ||
17 | |||
18 | #include "slice.h" | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | ////////////////////////////////////////////////////////////////////////////// | ||
23 | // When only use Slice Rev1. | ||
24 | ////////////////////////////////////////////////////////////////////////////// | ||
25 | /* | ||
26 | * ,------------------------------------------------ --------------------------------------------------. | ||
27 | * | L00 | L01 | L02 | L03 | L04 | L05 | L06 | L07 | | R00 | R01 | R02 | R03 | R04 | R05 | R06 | | ||
28 | * |------------------------------------------------ ------------------------------------------------------+ | ||
29 | * | L10 | L11 | L12 | L13 | L14 | L15 | L16 | | R10 | R11 | R12 | R13 | R14 | R15 | R16 | R37 | | ||
30 | * |---------------------------------------------- ------------------------------------------------------+ | ||
31 | * | L20 | L21 | L22 | L23 | L24 | L25 | L26 | | R20 | R21 | R22 | R23 | R24 | R25 | R26 | | ||
32 | * |------------------------------------------------- --------------------------------------------------------+ | ||
33 | * | L30 | L31 | L32 | L33 | L34 | L35 | L36 | | R30 | R31 | R32 | R33 | R34 | R34 | R35 | R36 | R37 | | ||
34 | * |------------------------------------------------- --------------------------------------------------------' | ||
35 | * | L40 | L41 | L42 | L43 | L44L45L46 | | R40 | R41 | | R42 | R43 | R44 | | ||
36 | * |------------------------------------------------- -------------------------------------------------------' | ||
37 | */ | ||
38 | |||
39 | #define LAYOUT( \ | ||
40 | L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, \ | ||
41 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, R17, \ | ||
42 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
43 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, R37,\ | ||
44 | L40, L41, L42, L43, L45, R40, R41, R42, R43, R44 \ | ||
45 | ) \ | ||
46 | { \ | ||
47 | { L00, L01, L02, L03, L04, L05, L06, L07, KC_NO }, \ | ||
48 | { L10, L11, L12, L13, L14, L15, L16, KC_NO, KC_NO }, \ | ||
49 | { L20, L21, L22, L23, L24, L25, L26, KC_NO, KC_NO }, \ | ||
50 | { L30, L31, L32, L33, L34, L35, L36, KC_NO, KC_NO }, \ | ||
51 | { L40, L41, L42, L43, KC_NO, L45, KC_NO, KC_NO, KC_NO }, \ | ||
52 | { R00, R01, R02, R03, R04, R05, R06, KC_NO, KC_NO }, \ | ||
53 | { R10, R11, R12, R13, R14, R15, R16, R17, KC_NO }, \ | ||
54 | { R20, R21, R22, R23, R24, R25, R26, KC_NO, KC_NO }, \ | ||
55 | { R30, R31, R32, R33, R34, R35, R36, R37, KC_NO }, \ | ||
56 | { R40, R41, R42, R43, R44, KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
57 | } | ||
58 | |||
59 | #define LAYOUT_split_left_space( \ | ||
60 | L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, \ | ||
61 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, R17, \ | ||
62 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
63 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, R37,\ | ||
64 | L40, L41, L42, L43, L44, L46, R40, R41, R42, R43, R44 \ | ||
65 | ) \ | ||
66 | { \ | ||
67 | { L00, L01, L02, L03, L04, L05, L06, L07, KC_NO }, \ | ||
68 | { L10, L11, L12, L13, L14, L15, L16, KC_NO, KC_NO }, \ | ||
69 | { L20, L21, L22, L23, L24, L25, L26, KC_NO, KC_NO }, \ | ||
70 | { L30, L31, L32, L33, L34, L35, L36, KC_NO, KC_NO }, \ | ||
71 | { L40, L41, L42, L43, L44, KC_NO, L46, KC_NO, KC_NO }, \ | ||
72 | { R00, R01, R02, R03, R04, R05, R06, KC_NO, KC_NO }, \ | ||
73 | { R10, R11, R12, R13, R14, R15, R16, R17, KC_NO }, \ | ||
74 | { R20, R21, R22, R23, R24, R25, R26, KC_NO, KC_NO }, \ | ||
75 | { R30, R31, R32, R33, R34, R35, R36, R37, KC_NO }, \ | ||
76 | { R40, R41, R42, R43, R44, KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
77 | } | ||
78 | |||
79 | #define LAYOUT_all( \ | ||
80 | L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, \ | ||
81 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, R17, \ | ||
82 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
83 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, R37,\ | ||
84 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44 \ | ||
85 | ) \ | ||
86 | { \ | ||
87 | { L00, L01, L02, L03, L04, L05, L06, L07, KC_NO }, \ | ||
88 | { L10, L11, L12, L13, L14, L15, L16, KC_NO, KC_NO }, \ | ||
89 | { L20, L21, L22, L23, L24, L25, L26, KC_NO, KC_NO }, \ | ||
90 | { L30, L31, L32, L33, L34, L35, L36, KC_NO, KC_NO }, \ | ||
91 | { L40, L41, L42, L43, L44, L45, L46, KC_NO, KC_NO }, \ | ||
92 | { R00, R01, R02, R03, R04, R05, R06, KC_NO, KC_NO }, \ | ||
93 | { R10, R11, R12, R13, R14, R15, R16, R17, KC_NO }, \ | ||
94 | { R20, R21, R22, R23, R24, R25, R26, KC_NO, KC_NO }, \ | ||
95 | { R30, R31, R32, R33, R34, R35, R36, R37, KC_NO }, \ | ||
96 | { R40, R41, R42, R43, R44, KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
97 | } | ||
98 | |||