aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/axon/axon.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/axon/axon.h')
-rw-r--r--keyboards/handwired/axon/axon.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/keyboards/handwired/axon/axon.h b/keyboards/handwired/axon/axon.h
new file mode 100644
index 000000000..0d3a5c90b
--- /dev/null
+++ b/keyboards/handwired/axon/axon.h
@@ -0,0 +1,85 @@
1/*
2Copyright 2021 Robin Liu
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "quantum.h"
21
22/*
23* Default layout:
24* 2.75u - 2.25u spacebar
25*/
26#define LAYOUT_default( \
27 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
28 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
29 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
30 K301, K302, K304, K306, K308, K309 \
31) { \
32 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
33 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
34 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
35 { KC_NO, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310 } \
36}
37
38/*
39* Spaceswap layout:
40* Electrically identical to default
41* 2.25u - 2.75u spacebar
42*/
43#define LAYOUT_spaceswap( \
44 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
45 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
46 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
47 K301, K302, K304, K306, K308, K309 \
48) { \
49 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
50 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
51 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
52 { KC_NO, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310 } \
53}
54
55/*
56* 6.25u spacebar layout:
57* 6.25u spacebar
58*/
59#define LAYOUT_space6p25u( \
60 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
61 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
62 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
63 K301, K302, K306, K309 \
64) { \
65 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
66 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
67 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
68 { KC_NO, K301, K302, KC_NO, KC_NO, KC_NO, K306, KC_NO, KC_NO, K309, K310 } \
69}
70
71/*
72* 7u spacebar layout:
73* 7u spacebar
74*/
75#define LAYOUT_space7u( \
76 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
77 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
78 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
79 K301, K304, K309 \
80) { \
81 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
82 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
83 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
84 { KC_NO, K301, KC_NO, KC_NO, K304, KC_NO, KC_NO, KC_NO, KC_NO, K309, K310 } \
85}