mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 20:32:58 +00:00
974d3f1ffd
* Add keyboard: Mesa TKL * Fix image link in readme * Update keyboards/mesa/mesa_tkl/mesa_tkl.c Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/mesa/mesa_tkl/rules.mk White space changes Co-authored-by: Ryan <fauxpark@gmail.com> * Replace tabs with spaces per C coding conventions. * Update keyboards/mesa/mesa_tkl/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
72 lines
5.5 KiB
C
72 lines
5.5 KiB
C
/* Copyright 2020 Mesa Keyboards
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "quantum.h"
|
|
|
|
#define LAYOUT_all( \
|
|
k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_14, k0_15, k0_16, \
|
|
k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k0_13, k1_14, k1_15, k1_16, \
|
|
k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, \
|
|
k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, k3_13, \
|
|
k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_13, k4_15, \
|
|
k5_00, k5_01, k5_02, k5_06, k5_10, k5_11, k5_13, k5_14, k5_15, k5_16 \
|
|
) \
|
|
{ \
|
|
{ k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_13, k0_14, k0_15, k0_16, }, \
|
|
{ k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k1_14, k1_15, k1_16, }, \
|
|
{ k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, }, \
|
|
{ k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, KC_NO, k3_13, KC_NO, KC_NO, KC_NO, }, \
|
|
{ k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_13, KC_NO, k4_15, KC_NO, }, \
|
|
{ k5_00, k5_01, k5_02, KC_NO, KC_NO, KC_NO, k5_06, KC_NO, KC_NO, KC_NO, k5_10, k5_11, KC_NO, k5_13, k5_14, k5_15, k5_16, }, \
|
|
}
|
|
|
|
#define LAYOUT_ansi( \
|
|
k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_14, k0_15, k0_16, \
|
|
k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k1_14, k1_15, k1_16, \
|
|
k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, \
|
|
k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, k3_13, \
|
|
k4_00, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_15, \
|
|
k5_00, k5_01, k5_02, k5_06, k5_10, k5_11, k5_13, k5_14, k5_15, k5_16 \
|
|
) \
|
|
{ \
|
|
{ k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, KC_NO, k0_14, k0_15, k0_16, }, \
|
|
{ k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k1_14, k1_15, k1_16, }, \
|
|
{ k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, }, \
|
|
{ k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, KC_NO, k3_13, KC_NO, KC_NO, KC_NO, }, \
|
|
{ k4_00, KC_NO, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, KC_NO, KC_NO, k4_15, KC_NO, }, \
|
|
{ k5_00, k5_01, k5_02, KC_NO, KC_NO, KC_NO, k5_06, KC_NO, KC_NO, KC_NO, k5_10, k5_11, KC_NO, k5_13, k5_14, k5_15, k5_16, }, \
|
|
}
|
|
|
|
#define LAYOUT_iso( \
|
|
k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_14, k0_15, k0_16, \
|
|
k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k1_14, k1_15, k1_16, \
|
|
k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, \
|
|
k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, k3_13, \
|
|
k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_15, \
|
|
k5_00, k5_01, k5_02, k5_06, k5_10, k5_11, k5_13, k5_14, k5_15, k5_16 \
|
|
) \
|
|
{ \
|
|
{ k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, KC_NO, k0_14, k0_15, k0_16, }, \
|
|
{ k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, k1_14, k1_15, k1_16, }, \
|
|
{ k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, k2_14, k2_15, k2_16, }, \
|
|
{ k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, KC_NO, k3_13, KC_NO, KC_NO, KC_NO, }, \
|
|
{ k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, KC_NO, KC_NO, k4_15, KC_NO, }, \
|
|
{ k5_00, k5_01, k5_02, KC_NO, KC_NO, KC_NO, k5_06, KC_NO, KC_NO, KC_NO, k5_10, k5_11, KC_NO, k5_13, k5_14, k5_15, k5_16, }, \
|
|
}
|
|
|