aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bpiphany/frosty_flake/frosty_flake.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bpiphany/frosty_flake/frosty_flake.h')
-rw-r--r--keyboards/bpiphany/frosty_flake/frosty_flake.h136
1 files changed, 136 insertions, 0 deletions
diff --git a/keyboards/bpiphany/frosty_flake/frosty_flake.h b/keyboards/bpiphany/frosty_flake/frosty_flake.h
new file mode 100644
index 000000000..f4f69f1a3
--- /dev/null
+++ b/keyboards/bpiphany/frosty_flake/frosty_flake.h
@@ -0,0 +1,136 @@
1#pragma once
2
3#include "quantum.h"
4
5// This a shortcut to help you visually see your layout.
6// The following is an example using the Planck MIT layout
7// The first section contains all of the arguements
8// The second converts the arguments into a two-dimensional array
9
10/*
11 Matrix col/row mapping
12
13 ,----. ,-------------------. ,-------------------. ,-------------------. ,--------------.
14 | J6 | | I4 | H4 | H2 | H6 | | A7 | E6 | D2 | D4 | | B4 | B7 | B6 | B0 | | C7 | C5 | A5 |
15 `----' `-------------------' `-------------------' `-------------------' `--------------'
16 ,-------------------------------------------------------------------------. ,--------------. ,-------------------.
17 | J4 | J7 | I7 | H7 | G7 | G4 | F4 | F7 | E7 | D7 | R7 | R4 | E4 | B2 | | L4 | O4 | Q4 | | K1 | L1 | Q1 | Q0 |
18 |-------------------------------------------------------------------------| |--------------| |-------------------|
19 | J2 | J5 | I5 | H5 | G5 | G2 | F2 | F5 | E5 | D5 | R5 | R2 | E2 | B3 | | K4 | O7 | Q7 | | K5 | L5 | Q5 | O5 |
20 |-------------------------------------------------------------------------| '--------------' |-------------- |
21 | O5 | J3 | I3 | H3 | G3 | G6 | F6 | F3 | E3 | D3 | R3 | R6 | B1 | | K2 | L2 | Q2 | |
22 |-------------------------------------------------------------------------| ,----. |-------------------|
23 | N2 | J1 | I1 | H1 | G1 | G0 | F0 | F1 | E1 | D1 | R0 | N3 | | O6 | | K3 | L3 | Q3 | O3 |
24 |-------------------------------------------------------------------------| ,--------------. |-------------- |
25 | A4 | P2 | C6 | K6 | C0 | M3 | D0 | A1 | | O0 | K0 | L0 | | L6 | Q6 | |
26 `-------------------------------------------------------------------------' `--------------' `-------------------'
27*/
28#define LAYOUT( \
29 KJ6, KI4, KH4, KH2, KH6, KA7, KE6, KD2, KD4, KB4, KB7, KB6, KB0, KC7, KC5, KA5, \
30 KJ4, KJ7, KI7, KH7, KG7, KG4, KF4, KF7, KE7, KD7, KR7, KR4, KE4, KB2, KL4, KO4, KQ4, KK1, KL1, KQ1, KQ0, \
31 KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, KK5, KL5, KQ5, KO5, \
32 KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, KK2, KL2, KQ2, \
33 KN2, KI6, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, KK3, KL3, KQ3, KO3, \
34 KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0, KL6, KQ6 \
35) \
36{ \
37/* 0 1 2 3 4 5 6 7 */ \
38/* A */ { KC_NO, KA1, KC_NO, KC_NO, KA4, KA5, KC_NO, KA7, }, \
39/* B */ { KB0, KB1, KB2, KB3, KB4, KC_NO, KB6, KB7, }, \
40/* C */ { KC0, KC_NO, KC_NO, KC_NO, KC_NO, KC5, KC6, KC7, }, \
41/* D */ { KD0, KD1, KD2, KD3, KD4, KD5, KC_NO, KD7, }, \
42/* E */ { KC_NO, KE1, KE2, KE3, KE4, KE5, KE6, KE7, }, \
43/* F */ { KF0, KF1, KF2, KF3, KF4, KF5, KF6, KF7, }, \
44/* G */ { KG0, KG1, KG2, KG3, KG4, KG5, KG6, KG7, }, \
45/* H */ { KC_NO, KH1, KH2, KH3, KH4, KH5, KH6, KH7, }, \
46/* I */ { KC_NO, KI1, KI2, KI3, KI4, KI5, KI6, KI7, }, \
47/* J */ { KC_NO, KJ1, KJ2, KJ3, KJ4, KJ5, KJ6, KJ7, }, \
48/* K */ { KK0, KK1, KK2, KK3, KK4, KK5, KK6, KC_NO, }, \
49/* L */ { KL0, KL1, KL2, KL3, KL4, KL5, KL6, KC_NO, }, \
50/* M */ { KC_NO, KC_NO, KC_NO, KM3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
51/* N */ { KC_NO, KC_NO, KN2, KN3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
52/* O */ { KO0, KC_NO, KC_NO, KO3, KO4, KO5, KO6, KO7, }, \
53/* P */ { KC_NO, KC_NO, KP2, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, }, \
54/* Q */ { KQ0, KQ1, KQ2, KQ3, KQ4, KQ5, KQ6, KQ7, }, \
55/* R */ { KR0, KC_NO, KR2, KR3, KR4, KR5, KR6, KR7, }, \
56}
57
58/*
59 Matrix col/row mapping (TKL)
60
61 ,----. ,-------------------. ,-------------------. ,-------------------. ,--------------.
62 | J6 | | I4 | H4 | H2 | H6 | | A7 | E6 | D2 | D4 | | B4 | B7 | B6 | B0 | | C7 | C5 | A5 |
63 `----' `-------------------' `-------------------' `-------------------' `--------------'
64 ,-------------------------------------------------------------------------. ,--------------.
65 | J4 | J7 | I7 | H7 | G7 | G4 | F4 | F7 | E7 | D7 | R7 | R4 | E4 | B2 | | L4 | O4 | Q4 |
66 |-------------------------------------------------------------------------| |--------------|
67 | J2 | J5 | I5 | H5 | G5 | G2 | F2 | F5 | E5 | D5 | R5 | R2 | E2 | B3 | | K4 | O7 | Q7 |
68 |-------------------------------------------------------------------------| '--------------'
69 | O5 | J3 | I3 | H3 | G3 | G6 | F6 | F3 | E3 | D3 | R3 | R6 | B1 |
70 |-------------------------------------------------------------------------| ,----.
71 | N2 | J1 | I1 | H1 | G1 | G0 | F0 | F1 | E1 | D1 | R0 | N3 | | O6 |
72 |-------------------------------------------------------------------------| ,--------------.
73 | A4 | P2 | C6 | K6 | C0 | M3 | D0 | A1 | | O0 | K0 | L0 |
74 `-------------------------------------------------------------------------' `--------------'
75*/
76
77#define LAYOUT_tkl( \
78 KJ6, KI4, KH4, KH2, KH6, KA7, KE6, KD2, KD4, KB4, KB7, KB6, KB0, KC7, KC5, KA5, \
79 KJ4, KJ7, KI7, KH7, KG7, KG4, KF4, KF7, KE7, KD7, KR7, KR4, KE4, KB2, KL4, KO4, KQ4, \
80 KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, \
81 KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, \
82 KN2, KI6, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, \
83 KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0 \
84) \
85{ \
86/* 0 1 2 3 4 5 6 7 */ \
87/* A */ { KC_NO, KA1, KC_NO, KC_NO, KA4, KA5, KC_NO, KA7, }, \
88/* B */ { KB0, KB1, KB2, KB3, KB4, KC_NO, KB6, KB7, }, \
89/* C */ { KC0, KC_NO, KC_NO, KC_NO, KC_NO, KC5, KC6, KC7, }, \
90/* D */ { KD0, KD1, KD2, KD3, KD4, KD5, KC_NO, KD7, }, \
91/* E */ { KC_NO, KE1, KE2, KE3, KE4, KE5, KE6, KE7, }, \
92/* F */ { KF0, KF1, KF2, KF3, KF4, KF5, KF6, KF7, }, \
93/* G */ { KG0, KG1, KG2, KG3, KG4, KG5, KG6, KG7, }, \
94/* H */ { KC_NO, KH1, KH2, KH3, KH4, KH5, KH6, KH7, }, \
95/* I */ { KC_NO, KI1, KI2, KI3, KI4, KI5, KI6, KI7, }, \
96/* J */ { KC_NO, KJ1, KJ2, KJ3, KJ4, KJ5, KJ6, KJ7, }, \
97/* K */ { KK0, KC_NO, KC_NO, KC_NO, KK4, KC_NO, KK6, KC_NO, }, \
98/* L */ { KL0, KC_NO, KC_NO, KC_NO, KL4, KC_NO, KC_NO, KC_NO, }, \
99/* M */ { KC_NO, KC_NO, KC_NO, KM3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
100/* N */ { KC_NO, KC_NO, KN2, KN3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
101/* O */ { KO0, KC_NO, KC_NO, KC_NO, KO4, KC_NO, KO6, KO7, }, \
102/* P */ { KC_NO, KC_NO, KP2, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, }, \
103/* Q */ { KC_NO, KC_NO, KC_NO, KC_NO, KQ4, KC_NO, KC_NO, KQ7, }, \
104/* R */ { KR0, KC_NO, KR2, KR3, KR4, KR5, KR6, KR7, }, \
105}
106
107#define LAYOUT_tkl_ansi( \
108 KJ6, KI4, KH4, KH2, KH6, KA7, KE6, KD2, KD4, KB4, KB7, KB6, KB0, KC7, KC5, KA5, \
109 KJ4, KJ7, KI7, KH7, KG7, KG4, KF4, KF7, KE7, KD7, KR7, KR4, KE4, KB2, KL4, KO4, KQ4, \
110 KJ2, KJ5, KI5, KH5, KG5, KG2, KF2, KF5, KE5, KD5, KR5, KR2, KE2, KB3, KK4, KO7, KQ7, \
111 KI2, KJ3, KI3, KH3, KG3, KG6, KF6, KF3, KE3, KD3, KR3, KR6, KB1, \
112 KN2, KJ1, KI1, KH1, KG1, KG0, KF0, KF1, KE1, KD1, KR0, KN3, KO6, \
113 KA4, KP2, KC6, KK6, KC0, KM3, KD0, KA1, KO0, KK0, KL0 \
114) \
115{ \
116/* 0 1 2 3 4 5 6 7 */ \
117/* A */ { KC_NO, KA1, KC_NO, KC_NO, KA4, KA5, KC_NO, KA7, }, \
118/* B */ { KB0, KB1, KB2, KB3, KB4, KC_NO, KB6, KB7, }, \
119/* C */ { KC0, KC_NO, KC_NO, KC_NO, KC_NO, KC5, KC6, KC7, }, \
120/* D */ { KD0, KD1, KD2, KD3, KD4, KD5, KC_NO, KD7, }, \
121/* E */ { KC_NO, KE1, KE2, KE3, KE4, KE5, KE6, KE7, }, \
122/* F */ { KF0, KF1, KF2, KF3, KF4, KF5, KF6, KF7, }, \
123/* G */ { KG0, KG1, KG2, KG3, KG4, KG5, KG6, KG7, }, \
124/* H */ { KC_NO, KH1, KH2, KH3, KH4, KH5, KH6, KH7, }, \
125/* I */ { KC_NO, KI1, KI2, KI3, KI4, KI5, KC_NO, KI7, }, \
126/* J */ { KC_NO, KJ1, KJ2, KJ3, KJ4, KJ5, KJ6, KJ7, }, \
127/* K */ { KK0, KC_NO, KC_NO, KC_NO, KK4, KC_NO, KK6, KC_NO, }, \
128/* L */ { KL0, KC_NO, KC_NO, KC_NO, KL4, KC_NO, KC_NO, KC_NO, }, \
129/* M */ { KC_NO, KC_NO, KC_NO, KM3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
130/* N */ { KC_NO, KC_NO, KN2, KN3, KC_NO, KC_NO, KC_NO, KC_NO, }, \
131/* O */ { KO0, KC_NO, KC_NO, KC_NO, KO4, KC_NO, KO6, KO7, }, \
132/* P */ { KC_NO, KC_NO, KP2, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, }, \
133/* Q */ { KC_NO, KC_NO, KC_NO, KC_NO, KQ4, KC_NO, KC_NO, KQ7, }, \
134/* R */ { KR0, KC_NO, KR2, KR3, KR4, KR5, KR6, KR7, }, \
135}
136