aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBifbofII <christoph@jabs-family.de>2021-12-27 05:09:56 +0200
committerGitHub <noreply@github.com>2021-12-27 14:09:56 +1100
commit8fd957b69b70136cf7b1ba7bed513e084fb3a340 (patch)
tree37604ec6be6c102d50559f26daeb3820a4c27ab3
parentec98bc343b4dae643ef4eac5fad2ca453af5ab65 (diff)
downloadqmk_firmware-8fd957b69b70136cf7b1ba7bed513e084fb3a340.tar.gz
qmk_firmware-8fd957b69b70136cf7b1ba7bed513e084fb3a340.zip
Add personal handwired Planck clone (#13299)
* Add personal handwired Planck clone * remove references to planck * requested changes - small changes to defines - licence headers * Clean up rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Change function return type to bool Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/handwired/ortho_brass/config.h44
-rw-r--r--keyboards/handwired/ortho_brass/keymaps/default/keymap.c240
-rw-r--r--keyboards/handwired/ortho_brass/keymaps/default/readme.md5
-rw-r--r--keyboards/handwired/ortho_brass/ortho_brass.c26
-rw-r--r--keyboards/handwired/ortho_brass/ortho_brass.h47
-rw-r--r--keyboards/handwired/ortho_brass/readme.md6
-rw-r--r--keyboards/handwired/ortho_brass/rules.mk22
-rw-r--r--layouts/community/ortho_4x12/bifbofii/keymap.c173
-rw-r--r--layouts/community/ortho_4x12/bifbofii/readme.md89
-rw-r--r--layouts/community/ortho_4x12/bifbofii/rules.mk1
10 files changed, 653 insertions, 0 deletions
diff --git a/keyboards/handwired/ortho_brass/config.h b/keyboards/handwired/ortho_brass/config.h
new file mode 100644
index 000000000..816a8fe59
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/config.h
@@ -0,0 +1,44 @@
1/* Copyright 2021 Christoph Jabs (BifbofII)
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 "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x6060
24#define DEVICE_VER 0x0001
25#define MANUFACTURER BifbofII
26#define PRODUCT Ortho Brass
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 12
31
32/* Handwired pin-out */
33#define MATRIX_ROW_PINS \
34 { D3, D2, D1, D0 }
35#define MATRIX_COL_PINS \
36 { F4, F7, F5, F1, C7, F0, B1, B0, F6, B6, B2, B3 }
37#define UNUSED_PINS \
38 { B0, B1, B2, F0, F1, F4, D4, D5, E6 }
39
40/* COL2ROW or ROW2COL */
41#define DIODE_DIRECTION COL2ROW
42
43/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
44#define DEBOUNCE 5
diff --git a/keyboards/handwired/ortho_brass/keymaps/default/keymap.c b/keyboards/handwired/ortho_brass/keymaps/default/keymap.c
new file mode 100644
index 000000000..48af2a2d0
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/keymaps/default/keymap.c
@@ -0,0 +1,240 @@
1/* Copyright 2021 Christoph Jabs (BifbofII)
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#include QMK_KEYBOARD_H
18
19enum ortho_brass_layers {
20 _QWERTY,
21 _COLEMAK,
22 _DVORAK,
23 _LOWER,
24 _RAISE,
25 _PLOVER,
26 _ADJUST
27};
28
29enum ortho_brass_keycodes {
30 QWERTY = SAFE_RANGE,
31 COLEMAK,
32 DVORAK,
33 PLOVER,
34 EXT_PLV
35};
36
37#define LOWER MO(_LOWER)
38#define RAISE MO(_RAISE)
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41
42/* Qwerty
43 * ,-----------------------------------------------------------------------------------.
44 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
45 * |------+------+------+------+------+------+------+------+------+------+------+------|
46 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
47 * |------+------+------+------+------+------+------+------+------+------+------+------|
48 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
49 * |------+------+------+------+------+------+------+------+------+------+------+------|
50 * | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
51 * `-----------------------------------------------------------------------------------'
52 */
53[_QWERTY] = LAYOUT_ortho_4x12_1x2uC(
54 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
55 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
56 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
57 XXXXXXX, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
58),
59
60/* Colemak
61 * ,-----------------------------------------------------------------------------------.
62 * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
63 * |------+------+------+------+------+------+------+------+------+------+------+------|
64 * | Esc | A | R | S | T | D | H | N | E | I | O | " |
65 * |------+------+------+------+------+------+------+------+------+------+------+------|
66 * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
67 * |------+------+------+------+------+------+------+------+------+------+------+------|
68 * | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
69 * `-----------------------------------------------------------------------------------'
70 */
71[_COLEMAK] = LAYOUT_ortho_4x12_1x2uC(
72 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
73 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
74 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
75 XXXXXXX, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
76),
77
78/* Dvorak
79 * ,-----------------------------------------------------------------------------------.
80 * | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp |
81 * |------+------+------+------+------+------+------+------+------+------+------+------|
82 * | Esc | A | O | E | U | I | D | H | T | N | S | / |
83 * |------+------+------+------+------+------+------+------+------+------+------+------|
84 * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
85 * |------+------+------+------+------+------+------+------+------+------+------+------|
86 * | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
87 * `-----------------------------------------------------------------------------------'
88 */
89[_DVORAK] = LAYOUT_ortho_4x12_1x2uC(
90 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
91 KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
92 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT ,
93 XXXXXXX, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
94),
95
96/* Lower
97 * ,-----------------------------------------------------------------------------------.
98 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
99 * |------+------+------+------+------+------+------+------+------+------+------+------|
100 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
101 * |------+------+------+------+------+------+------+------+------+------+------+------|
102 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
103 * |------+------+------+------+------+------+------+------+------+------+------+------|
104 * | | | | | | | | Next | Vol- | Vol+ | Play |
105 * `-----------------------------------------------------------------------------------'
106 */
107[_LOWER] = LAYOUT_ortho_4x12_1x2uC(
108 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
109 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
110 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
111 _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
112),
113
114/* Raise
115 * ,-----------------------------------------------------------------------------------.
116 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
117 * |------+------+------+------+------+------+------+------+------+------+------+------|
118 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
119 * |------+------+------+------+------+------+------+------+------+------+------+------|
120 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
121 * |------+------+------+------+------+------+------+------+------+------+------+------|
122 * | | | | | | | | Next | Vol- | Vol+ | Play |
123 * `-----------------------------------------------------------------------------------'
124 */
125[_RAISE] = LAYOUT_ortho_4x12_1x2uC(
126 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
127 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
128 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
129 _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
130),
131
132/* Plover layer (http://opensteno.org)
133 * ,-----------------------------------------------------------------------------------.
134 * | # | # | # | # | # | # | # | # | # | # | # | # |
135 * |------+------+------+------+------+------+------+------+------+------+------+------|
136 * | | S | T | P | H | * | * | F | P | L | T | D |
137 * |------+------+------+------+------+------+------+------+------+------+------+------|
138 * | | S | K | W | R | * | * | R | B | G | S | Z |
139 * |------+------+------+------+------+------+------+------+------+------+------+------|
140 * | Exit | | | A | O | | E | U | | | |
141 * `-----------------------------------------------------------------------------------'
142 */
143[_PLOVER] = LAYOUT_ortho_4x12_1x2uC(
144 KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
145 XXXXXXX, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
146 XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
147 EXT_PLV, XXXXXXX, XXXXXXX, KC_C, KC_V, XXXXXXX, KC_N, KC_M, XXXXXXX, XXXXXXX, XXXXXXX
148),
149
150/* Adjust (Lower + Raise)
151 * v------------------------RGB CONTROL--------------------v
152 * ,-----------------------------------------------------------------------------------.
153 * | | Reset|Debug | RGB |RGBMOD| HUE+ | HUE- | SAT+ | SAT- |BRGTH+|BRGTH-| Del |
154 * |------+------+------+------+------+------+------+------+------+------+------+------|
155 * | | |MUSmod|Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak|Plover| |
156 * |------+------+------+------+------+------+------+------+------+------+------+------|
157 * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof|TermOn|TermOf| | | |
158 * |------+------+------+------+------+------+------+------+------+------+------+------|
159 * | | | | | | | | | | | |
160 * `-----------------------------------------------------------------------------------'
161 */
162[_ADJUST] = LAYOUT_ortho_4x12_1x2uC(
163 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
164 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______,
165 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______,
166 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
167)
168
169};
170
171layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); }
172
173bool process_record_user(uint16_t keycode, keyrecord_t *record) {
174 switch (keycode) {
175 case QWERTY:
176 if (record->event.pressed) {
177 set_single_persistent_default_layer(_QWERTY);
178 }
179 return false;
180 break;
181 case COLEMAK:
182 if (record->event.pressed) {
183 set_single_persistent_default_layer(_COLEMAK);
184 }
185 return false;
186 break;
187 case DVORAK:
188 if (record->event.pressed) {
189 set_single_persistent_default_layer(_DVORAK);
190 }
191 return false;
192 break;
193 case PLOVER:
194 if (record->event.pressed) {
195 layer_off(_RAISE);
196 layer_off(_LOWER);
197 layer_off(_ADJUST);
198 layer_on(_PLOVER);
199 if (!eeconfig_is_enabled()) {
200 eeconfig_init();
201 }
202 keymap_config.raw = eeconfig_read_keymap();
203 keymap_config.nkro = 1;
204 eeconfig_update_keymap(keymap_config.raw);
205 }
206 return false;
207 break;
208 case EXT_PLV:
209 if (record->event.pressed) {
210 layer_off(_PLOVER);
211 }
212 return false;
213 break;
214 }
215 return true;
216}
217
218bool dip_switch_update_user(uint8_t index, bool active) {
219 switch (index) {
220 case 0: {
221 if (active) {
222 layer_on(_ADJUST);
223 } else {
224 layer_off(_ADJUST);
225 }
226 break;
227 }
228 }
229 return true;
230}
231
232bool music_mask_user(uint16_t keycode) {
233 switch (keycode) {
234 case RAISE:
235 case LOWER:
236 return false;
237 default:
238 return true;
239 }
240}
diff --git a/keyboards/handwired/ortho_brass/keymaps/default/readme.md b/keyboards/handwired/ortho_brass/keymaps/default/readme.md
new file mode 100644
index 000000000..ca6c4a71d
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1# The Default Ortho 4x12 Planck-like Layout
2
3![Planck Default Layout](https://i.imgur.com/axdWbdH.jpeg)
4
5Very slightly modified to remove features that the handwired version does not have.
diff --git a/keyboards/handwired/ortho_brass/ortho_brass.c b/keyboards/handwired/ortho_brass/ortho_brass.c
new file mode 100644
index 000000000..d124bbfca
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/ortho_brass.c
@@ -0,0 +1,26 @@
1/* Copyright 2021 Christoph Jabs (BifbofII)
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#include "ortho_brass.h"
18
19#ifdef SWAP_HANDS_ENABLE
20__attribute__((weak)) const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
21 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
22 {{11, 1}, {10, 1}, {9, 1}, {8, 1}, {7, 1}, {6, 1}, {5, 1}, {4, 1}, {3, 1}, {2, 1}, {1, 1}, {0, 1}},
23 {{11, 2}, {10, 2}, {9, 2}, {8, 2}, {7, 2}, {6, 2}, {5, 2}, {4, 2}, {3, 2}, {2, 2}, {1, 2}, {0, 2}},
24 {{11, 3}, {10, 3}, {9, 3}, {8, 3}, {7, 3}, {6, 3}, {5, 3}, {4, 3}, {3, 3}, {2, 3}, {1, 3}, {0, 3}},
25};
26#endif
diff --git a/keyboards/handwired/ortho_brass/ortho_brass.h b/keyboards/handwired/ortho_brass/ortho_brass.h
new file mode 100644
index 000000000..0bcff0db5
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/ortho_brass.h
@@ -0,0 +1,47 @@
1/* Copyright 2021 Christoph Jabs (BifbofII)
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 LAYOUT_ortho_4x12_1x2uC( \
22 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
23 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
24 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
25 k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \
26) \
27{ \
28 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
29 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
30 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
31 { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \
32}
33
34#define LAYOUT_ortho_4x12( \
35 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
36 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
37 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
38 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
39) \
40{ \
41 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
42 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
43 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
44 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \
45}
46
47#define LAYOUT LAYOUT_ortho_4x12
diff --git a/keyboards/handwired/ortho_brass/readme.md b/keyboards/handwired/ortho_brass/readme.md
new file mode 100644
index 000000000..0b531dac1
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/readme.md
@@ -0,0 +1,6 @@
1# Ortho Brass Handwired Keyboard
2
3A handwired keyboard with brass backplate and planck-like ortho 4x12 layout.
4A compact 40% (12x4) ortholinear keyboard.
5
6![BifbofII Ortho 4x12 Layout](https://i.imgur.com/hHSexjE.jpeg)
diff --git a/keyboards/handwired/ortho_brass/rules.mk b/keyboards/handwired/ortho_brass/rules.mk
new file mode 100644
index 000000000..19154c58f
--- /dev/null
+++ b/keyboards/handwired/ortho_brass/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader
5BOOTLOADER = qmk-dfu
6
7# Build Options
8BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
9MOUSEKEY_ENABLE = no # Mouse keys
10EXTRAKEY_ENABLE = yes # Audio control and System control
11CONSOLE_ENABLE = no # Console for debug
12COMMAND_ENABLE = no # Commands for debug and configuration
13NKRO_ENABLE = yes # N-key Rollover
14BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
15RGBLIGHT_ENABLE = no # Enable RGB underlight.
16
17# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
18SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
19
20LAYOUTS = ortho_4x12
21
22RGBLIGHT_SUPPORTED = no
diff --git a/layouts/community/ortho_4x12/bifbofii/keymap.c b/layouts/community/ortho_4x12/bifbofii/keymap.c
new file mode 100644
index 000000000..6ce39a4a3
--- /dev/null
+++ b/layouts/community/ortho_4x12/bifbofii/keymap.c
@@ -0,0 +1,173 @@
1/* Copyright 2021 Christoph Jabs (BifbofII)
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#include QMK_KEYBOARD_H
18
19/* ====== Unicode ====== */
20/* Character names */
21enum unicode_names {
22 SAE,
23 BAE,
24 SUE,
25 BUE,
26 SOE,
27 BOE,
28 SS,
29 EUR,
30 CPR
31};
32
33/* Unicode map */
34const uint32_t PROGMEM unicode_map[] = {
35 [SAE] = 0x00E4, // ä
36 [BAE] = 0x00C4, // Ä
37 [SUE] = 0x00FC, // ü
38 [BUE] = 0x00DC, // Ü
39 [SOE] = 0x00F6, // ü
40 [BOE] = 0x00D6, // Ü
41 [SS] = 0x00DF, // ß
42 [EUR] = 0x20AC, // €
43 [CPR] = 0x00A9 // ©
44};
45
46// ====== Layers ======
47// Layer numbers
48enum layer_names {
49 QWERTY = 0,
50 RAISE,
51 LOWER,
52 FUNCTIONS,
53 UNICODE,
54 SPECIALS,
55};
56
57#define L_LOW MO(LOWER)
58#define L_RAIS MO(RAISE)
59#define L_SPEC MO(SPECIALS)
60#define L_FNC LT(FUNCTIONS, KC_SPC)
61#define L_UNI LT(UNICODE, KC_ESC)
62
63const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
64
65/* Qwerty
66 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
67 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bsp |
68 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
69 * | Esc | A | S | D | F | G | H | J | K | L | ; | ' |
70 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
71 * |Shift| Z | X | C | V | B | N | M | , | . | / | Ret |
72 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
73 * |Ctrl |Super| | Alt |Lower| Spc |Raise| Alt |Super|Ctrl |Spec |
74 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
75 */
76[QWERTY] = LAYOUT_ortho_4x12(
77 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
78 L_UNI, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
79 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT),
80 KC_LCTL, KC_LGUI, XXXXXXX, KC_LALT, L_LOW, L_FNC, L_FNC, L_RAIS, KC_RALT, KC_RGUI, KC_RCTL, L_SPEC
81),
82
83/* Raise
84 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
85 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bsp |
86 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
87 * | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
88 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
89 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | |
90 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
91 * | | | | | | | | | | | | |
92 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
93 */
94[RAISE] = LAYOUT_ortho_4x12(
95 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
96 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
97 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
99),
100
101/* Lower
102 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
103 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bsp |
104 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
105 * | | | | | | | | _ | + | { | } | | |
106 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
107 * | | | | | | | | | | | | |
108 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
109 * | | | | | | | | | | | |
110 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
111 */
112[LOWER] = LAYOUT_ortho_4x12(
113 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
114 _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
115 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
116 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
117),
118
119/* Functions Layer 1
120 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
121 * | | | | | |Mute |Prev |Vol- |Vol+ |Next |Play | Del |
122 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
123 * |Caps | | < | | | > |Left |Down | Up |Right| | |
124 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
125 * | | | | | | |Home |PgDn |PgUp | End | | |
126 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
127 * | | | | | | | | | | | |
128 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
129 */
130[FUNCTIONS] = LAYOUT_ortho_4x12(
131 _______, _______, _______, _______, _______, KC__MUTE, KC_MPRV, KC__VOLDOWN, KC_VOLU, KC_MNXT, KC_MEDIA_PLAY_PAUSE, KC_DEL,
132 KC_CAPS, _______, KC_WBAK, _______, _______, KC_WFWD, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
133 _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______,
134 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
135),
136
137/* Unicode Layer
138 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
139 * | | | | € | | | | Ü | | Ö | | |
140 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
141 * | | Ä | ß | | | | | | | | | |
142 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
143 * | | | | © | | | | | | | | |
144 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
145 * | | | | | | | | | | | |
146 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
147 */
148[UNICODE] = LAYOUT_ortho_4x12(
149 _______, _______, _______, X(EUR), _______, _______, _______, XP(SUE, BUE), _______, XP(SOE, BOE), _______, _______,
150 _______, XP(SAE, BAE), X(SS), _______, _______, _______, _______, _______, _______, _______, _______, _______,
151 _______, _______, _______, X(CPR), _______, _______, _______, _______, _______, _______, _______, _______,
152 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
153),
154
155/* Specials Layer
156 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
157 * | XXX | XXX | Win | XXX | XXX | XXX | XXX | XXX | XXX | OSX | XXX | XXX |
158 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
159 * | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | Lnx | XXX | XXX |
160 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
161 * | XXX | XXX | XXX | XXX | XXX |RESET| XXX | XXX | XXX | XXX | XXX | XXX |
162 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
163 * | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX |
164 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
165 */
166[SPECIALS] = LAYOUT_ortho_4x12(
167 XXXXXXX, XXXXXXX, UC_M_WC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, UC_M_OS, XXXXXXX, XXXXXXX,
168 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, UC_M_LN, XXXXXXX, XXXXXXX,
169 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
170 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
171)
172
173};
diff --git a/layouts/community/ortho_4x12/bifbofii/readme.md b/layouts/community/ortho_4x12/bifbofii/readme.md
new file mode 100644
index 000000000..e077ffba2
--- /dev/null
+++ b/layouts/community/ortho_4x12/bifbofii/readme.md
@@ -0,0 +1,89 @@
1# Personal Ortho 4x12 Layout of BifbofII
2
3![BifbofII Ortho 4x12 Layout](https://i.imgur.com/hHSexjE.jpeg)
4
5## QWERTY Layer
6
7```
8+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
9| Tab | Q | W | E | R | T | Y | U | I | O | P | Bsp |
10+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
11| Esc | A | S | D | F | G | H | J | K | L | ; | ' |
12+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
13|Shift| Z | X | C | V | B | N | M | , | . | / | Ret |
14+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
15|Ctrl |Super| | Alt |Lower| Spc | Spc |Raise| Alt |Super|Ctrl |Spec |
16+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
17```
18
19Holding the Space Bar switches to the Function layer.
20
21## Raise
22
23```
24+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
25| ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bsp |
26+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
27| | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
28+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
29| | F7 | F8 | F9 | F10 | F11 | F12 | | | | | |
30+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
31| | | | | | | | | | | | |
32+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
33```
34
35## Lower
36
37```
38+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
39| ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bsp |
40+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
41| | | | | | | | _ | + | { | } | | |
42+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
43| | | | | | | | | | | | |
44+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
45| | | | | | | | | | | | |
46+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
47```
48
49## Function Layer
50
51```
52+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
53| | | | | |Mute |Prev |Vol- |Vol+ |Next |Play | Del |
54+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
55|Caps | | < | | | > |Left |Down | Up |Right| | |
56+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
57| | | | | | |Home |Page-|Page+| End | | |
58+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
59| | | | | | | | | | | | |
60+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
61```
62
63## Unicode Layer
64
65```
66+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
67| | | | € | | | | Ü | | Ö | | |
68+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
69| | Ä | ß | | | | | | | | | |
70+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
71| | | | © | | | | | | | | |
72+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
73| | | | | | | | | | | | |
74+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
75```
76
77## Specials Layer
78
79```
80+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
81| XXX | XXX | Win | XXX | XXX | XXX | XXX | XXX | XXX | OSX | XXX | XXX |
82+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
83| XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | Lnx | XXX | XXX |
84+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
85| XXX | XXX | XXX | XXX | XXX |RESET| XXX | XXX | XXX | XXX | XXX | XXX |
86+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
87| XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX | XXX |
88+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
89```
diff --git a/layouts/community/ortho_4x12/bifbofii/rules.mk b/layouts/community/ortho_4x12/bifbofii/rules.mk
new file mode 100644
index 000000000..502b2def7
--- /dev/null
+++ b/layouts/community/ortho_4x12/bifbofii/rules.mk
@@ -0,0 +1 @@
UNICODEMAP_ENABLE = yes