qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

pearl.h (2584B)


      1 /*
      2 Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
      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 
     18 #pragma once
     19 
     20 #include "quantum.h"
     21 #include "pearl.h"
     22 
     23 #define LAYOUT_all( \
     24   K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C,\
     25    K10,  K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A,  K1B, \
     26     K20,  K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,\
     27        K30, K31, K32,   K34,  K35, K37,   K39, K3A\
     28 ){ \
     29   { K00, K01, K02, K03,   K04, K05, K06,   K07, K08,   K09, K0A, K0B,   K0C}, \
     30   { K10, K11, K12, K13,   K14, K15, K16,   K17, K18,   K19, K1A, K1B,   KC_NO}, \
     31   { K20, K21, K22, K23,   K24, K25, K26,   K27, K28,   K29, K2A, K2B,   KC_NO}, \
     32   { K30, K31, K32, KC_NO, K34, K35, KC_NO, K37, KC_NO, K39, K3A, KC_NO, KC_NO}, \
     33 }
     34 
     35 #define LAYOUT_splits( \
     36   K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C,\
     37    K10,  K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A,  K1B, \
     38     K20,  K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,\
     39        K30, K31, K32,   K34,   K37,   K39, K3A\
     40 ){ \
     41   { K00, K01, K02, K03,   K04, K05, K06,   K07, K08,   K09, K0A, K0B,   K0C}, \
     42   { K10, K11, K12, K13,   K14, K15, K16,   K17, K18,   K19, K1A, K1B,   KC_NO}, \
     43   { K20, K21, K22, K23,   K24, K25, K26,   K27, K28,   K29, K2A, K2B,   KC_NO}, \
     44   { K30, K31, K32, KC_NO, K34, KC_NO, KC_NO, K37, KC_NO, K39, K3A, KC_NO, KC_NO}, \
     45 }
     46 
     47 #define LAYOUT_spacebar( \
     48   K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C,\
     49    K10,  K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A,  K1B, \
     50     K20,  K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,\
     51            K30, K31,              K35,           K39, K3A\
     52 ){ \
     53   { K00, K01, K02,   K03,   K04, K05, K06,   K07,   K08,   K09, K0A, K0B,   K0C}, \
     54   { K10, K11, K12,   K13,   K14, K15, K16,   K17,   K18,   K19, K1A, K1B,   KC_NO}, \
     55   { K20, K21, K22,   K23,   K24, K25, K26,   K27,   K28,   K29, K2A, K2B,   KC_NO}, \
     56   { K30, K31, KC_NO, KC_NO, KC_NO, K35, KC_NO, KC_NO, KC_NO, K39, K3A, KC_NO, KC_NO}, \
     57 }