]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ropro/ropro.h
[Keyboard] add support for the RoPro Keyboard (#6210)
[qmk_firmware.git] / keyboards / ropro / ropro.h
1 /* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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  * Note:  Matrix is a little wacky with the rotary encoder click mapping being
17  * on the opposite side of the board.  Remember to pay attention to 
18  * the 13th column where the lone key mapped for rotary encoder click (K132).
19 */
20
21 #pragma once
22
23 #include "quantum.h"
24
25 #define LAYOUT( \
26          K10, K20, K30, K40, K50, K60, K70, K80, K90, K100, K110, K120, \
27          K11, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, K121, \
28     K132, K12, K22, K32, K42, K52, K62, K72, K82, K92, K102, K112, K122, \
29     K03, K13, K23, K33, K43, K53, K63, K73, K83, K93, K103, K113, K123, \
30     K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, \
31     K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125 \
32 ) { \
33     { KC_NO, K10, K20, K30, K40, K50, K60, K70, K80, K90, K100, K110, K120, KC_NO }, \
34     { KC_NO, K11, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, K121, KC_NO }, \
35     { KC_NO, K12, K22, K32, K42, K52, K62, K72, K82, K92, K102, K112, K122, K132  }, \
36     { K03,   K13, K23, K33, K43, K53, K63, K73, K83, K93, K103, K113, K123, KC_NO }, \
37     { K04,   K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, KC_NO }, \
38     { K05,   K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125, KC_NO } \
39 }