diff options
author | David Dejaeghere <david.dejaeghere@tarpit.be> | 2021-01-14 06:58:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 21:58:16 -0800 |
commit | 501f3ed419cc8a07d156e2cac0f40cfad2485847 (patch) | |
tree | 9ab17d3e4ef2295f421232cbe25c467064f68157 /keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h | |
parent | 8ea28429e90f9a1d6da34797a9af6e51bf56f1d3 (diff) |
[Keyboard] Adding new keyboard UD_40 ortho version (#11401)
* Adding keyboard UD_40 Ortho
* Update keyboards/mechstudio/ud_40_ortho/info.json
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/via/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/via/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/via/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* fixing syntax after merging suggestions
* Update keyboards/mechstudio/ud_40_ortho/config.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mechstudio/ud_40_ortho/keymaps/via/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/mechstudio/ud_40_ortho/rules.mk
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mechstudio/ud_40_ortho/rules.mk
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mechstudio/ud_40_ortho/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: David <david@tarpit.be>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h')
-rw-r--r-- | keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h b/keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h new file mode 100644 index 0000000000..6e0b608e7b --- /dev/null +++ b/keyboards/mechstudio/ud_40_ortho/ud_40_ortho.h @@ -0,0 +1,39 @@ +/* Copyright 2020 David Dejaeghere + * + * 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" + +/* This a shortcut to help you visually see your layout. + * + * The first section contains all of the arguments representing the physical + * layout of the board and position of the keys. + * + * The second converts the arguments into a two-dimensional array which + * represents the switch matrix. + */ + +#define LAYOUT_ortho_4x12( \ + k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ + k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ + k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ + k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \ +) { \ + { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ + { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ + { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ + { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \ +} |