diff options
| author | QMK Bot <hello@qmk.fm> | 2021-05-22 05:29:17 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-05-22 05:29:17 +0000 |
| commit | ca570947b025af5f93ab3a8a257ac8bff75d1692 (patch) | |
| tree | 5f2ada56860a088e2e8af40eb4096a7953042f89 /keyboards/mechwild/murphpad/murphpad.h | |
| parent | 31130b9031af1e4f712e443aee69d24baacc04f1 (diff) | |
| parent | 8feb767994ec8576afea22305661b55d0e805a8f (diff) | |
| download | qmk_firmware-ca570947b025af5f93ab3a8a257ac8bff75d1692.tar.gz qmk_firmware-ca570947b025af5f93ab3a8a257ac8bff75d1692.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/mechwild/murphpad/murphpad.h')
| -rw-r--r-- | keyboards/mechwild/murphpad/murphpad.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/keyboards/mechwild/murphpad/murphpad.h b/keyboards/mechwild/murphpad/murphpad.h new file mode 100644 index 000000000..2735e2205 --- /dev/null +++ b/keyboards/mechwild/murphpad/murphpad.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define ___ KC_NO | ||
| 22 | |||
| 23 | /* This is a shortcut to help you visually see your layout. | ||
| 24 | * | ||
| 25 | * The first section contains all of the arguments representing the physical | ||
| 26 | * layout of the board and position of the keys. | ||
| 27 | * | ||
| 28 | * The second converts the arguments into a two-dimensional array which | ||
| 29 | * represents the switch matrix. | ||
| 30 | */ | ||
| 31 | #define LAYOUT( \ | ||
| 32 | k00, k01, k02, k03, \ | ||
| 33 | k10, k11, k12, k13, \ | ||
| 34 | k20, k21, k22, k23, \ | ||
| 35 | k30, k31, k32, k33, k34, \ | ||
| 36 | k40, k41, k42, k43, k44, \ | ||
| 37 | k50, k51, k52, k53, k54, \ | ||
| 38 | \ | ||
| 39 | BACK00, BACK01, BACK02 \ | ||
| 40 | \ | ||
| 41 | ) { \ | ||
| 42 | { BACK00, k00, k01, k02, k03 }, \ | ||
| 43 | { BACK01, k10, k11, k12, k13 }, \ | ||
| 44 | { BACK02, k20, k21, k22, k23 }, \ | ||
| 45 | { k30, k31, k32, k33, k34 }, \ | ||
| 46 | { k40, k41, k42, k43, k44 }, \ | ||
| 47 | { k50, k51, k52, k53, k54 } \ | ||
| 48 | } | ||
