aboutsummaryrefslogtreecommitdiff
path: root/keyboards/yampad/yampad.h
diff options
context:
space:
mode:
authorDaveyr <26368709+Daveyr@users.noreply.github.com>2021-05-14 03:00:25 +0100
committerGitHub <noreply@github.com>2021-05-13 19:00:25 -0700
commit0aaddf697fb977c8457f3b0231c2f007ac1e0fb9 (patch)
tree160a4b3ee1f1bc2541f89d7e828e87f2355d01f9 /keyboards/yampad/yampad.h
parentcef1d19a6ceb2ce6adad1b336946bf357dbb487f (diff)
downloadqmk_firmware-0aaddf697fb977c8457f3b0231c2f007ac1e0fb9.tar.gz
qmk_firmware-0aaddf697fb977c8457f3b0231c2f007ac1e0fb9.zip
[Keyboard] added yampad configuration to keyboard subfolder (#10112)
* added yampad configuration to keyboard subfolder * Update keyboards/yampad/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * added debouncing algorithm, delay and a traditional layout * added link to readme * some missed conflicts resolved in readme and rule * Update readme.md * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/yampad/keymaps/traditional/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/yampad.c As suggested Co-authored-by: Drashna Jaelre <drashna@live.com> * Update readme.md Updated per suggestion * Update keymap.c Add MIT licence * Update keymap.c Added MIT licence to the traditional layout. * Update keyboards/yampad/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/yampad/yampad.c Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/yampad/yampad.c Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * make cases numerical in .c file * corrected the bootloader in rules.mk * Update keyboards/yampad/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Richard <davey.richard@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/yampad/yampad.h')
-rw-r--r--keyboards/yampad/yampad.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/keyboards/yampad/yampad.h b/keyboards/yampad/yampad.h
new file mode 100644
index 000000000..68ec98ffd
--- /dev/null
+++ b/keyboards/yampad/yampad.h
@@ -0,0 +1,57 @@
1
2/* Copyright 2019
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#pragma once
18
19#include "quantum.h"
20#define ___ KC_NO
21
22/* This a shortcut to help you visually see your layout.
23 *
24 * The first section contains all of the arguments representing the physical
25 * layout of the board and position of the keys.
26 *
27 * The second converts the arguments into a two-dimensional array which
28 * represents the switch matrix.
29 */
30
31/* COSPAD numpad matrix layout
32 * ,-------------------.
33 * | 00 | 01 | 02 | 03 |
34 * |----|----|----|----|
35 * | 10 | 11 | 12 | |
36 * |----|----|----| 13 |
37 * | 20 | 21 | 22 | |
38 * |----|----|----|----|
39 * | 30 | 31 | 32 | |
40 * |----|----|----| 43 |
41 * | 40 | 41 | 42 | |
42 * `-------------------'
43 */
44#define LAYOUT( \
45 k00, k01, k02, k03, \
46 k10, k11, k12, \
47 k20, k21, k22, k13, \
48 k30, k31, k32, \
49 k40, k41, k42, k43 \
50) \
51{ \
52 {k00, k01, k02, k03}, \
53 {k10, k11, k12, k13}, \
54 {k20, k21, k22, ___}, \
55 {k30, k31, k32, ___}, \
56 {k40, k41, k42, k43} \
57}