aboutsummaryrefslogtreecommitdiff
path: root/keyboards/efreet/efreet.h
diff options
context:
space:
mode:
authorAmber Holly <halcyonsilver@gmail.com>2019-09-25 21:06:57 +0100
committerDrashna Jaelre <drashna@live.com>2019-09-25 13:06:57 -0700
commit475f832b0f434615b9b32ca3f600c4b770d6e1e5 (patch)
tree34f7941509148d984e7debe8c3eb1ae4b15b9076 /keyboards/efreet/efreet.h
parenta76a79b8275740e218a31e1e45ec22bfeb80d3ba (diff)
downloadqmk_firmware-475f832b0f434615b9b32ca3f600c4b770d6e1e5.tar.gz
qmk_firmware-475f832b0f434615b9b32ca3f600c4b770d6e1e5.zip
[Keyboard] Add Efreet keyboard (#6811)
* start wraith firmware * completed initial setup * added amber keymap to wraith * fixed LEDs, wrote readme files * reverted bootloader type after troubleshooting * decapitalised files and directory as per qmk standards * Update Wraith keyboard folder - Add timer keymap with documentation - Remove boilerplate in rules.mk, ready for pull request - Update info.json with ISO and ANSI layouts, ready for QMK Configurator * Add Efreet keyboard * Remove unnecessary keyboard folders * Enable community layout support for Efreet - Rename LAYOUT macro to LAYOUT_ortho_4x12 - Add layout macro named LAYOUT_planck_mit - Remove unnecessary magic key command, as we are using the default - Fix readme.md formatting for GitHub * Fix community layout support for Efreet - Fix 2u spacebar keycodes in LAYOUT_planck_mit to denote absence of switch - Turn on Community Layouts in rules.mk * Update default keymap.c to use community layout
Diffstat (limited to 'keyboards/efreet/efreet.h')
-rw-r--r--keyboards/efreet/efreet.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/keyboards/efreet/efreet.h b/keyboards/efreet/efreet.h
new file mode 100644
index 000000000..7ad717f3d
--- /dev/null
+++ b/keyboards/efreet/efreet.h
@@ -0,0 +1,59 @@
1/* Copyright 2019 Amber Holly
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#pragma once
17
18#include "quantum.h"
19
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28
29 #define LAYOUT_ortho_4x12( \
30 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15,\
31 K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35,\
32 K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55,\
33 K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75\
34 ) { \
35 { K10, K11, K12, K13, K14, K15 }, \
36 { K00, K01, K02, K03, K04, K05 }, \
37 { K30, K31, K32, K33, K34, K35 }, \
38 { K20, K21, K22, K23, K24, K25 }, \
39 { K50, K51, K52, K53, K54, K55 }, \
40 { K40, K41, K42, K43, K44, K45 }, \
41 { K70, K71, K72, K73, K74, K75 }, \
42 { K60, K61, K62, K63, K64, K65 } \
43 }
44
45 #define LAYOUT_planck_mit( \
46 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15,\
47 K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35,\
48 K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55,\
49 K60, K70, K61, K71, K62, K72, K73, K64, K74, K65, K75\
50 ) { \
51 { K10, K11, K12, K13, K14, K15 }, \
52 { K00, K01, K02, K03, K04, K05 }, \
53 { K30, K31, K32, K33, K34, K35 }, \
54 { K20, K21, K22, K23, K24, K25 }, \
55 { K50, K51, K52, K53, K54, K55 }, \
56 { K40, K41, K42, K43, K44, K45 }, \
57 { K70, K71, K72, K73, K74, K75 }, \
58 { K60, K61, K62, KC_NO, K64, K65 } \
59 }