aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/concertina/64key/64key.c17
-rw-r--r--keyboards/handwired/concertina/64key/64key.h56
-rw-r--r--keyboards/handwired/concertina/64key/config.h34
-rw-r--r--keyboards/handwired/concertina/64key/keymaps/default/config.h23
-rw-r--r--keyboards/handwired/concertina/64key/keymaps/default/keymap.c93
-rw-r--r--keyboards/handwired/concertina/64key/readme.md15
-rw-r--r--keyboards/handwired/concertina/concertina.h23
-rw-r--r--keyboards/handwired/concertina/config.h26
-rw-r--r--keyboards/handwired/concertina/info.json37
-rw-r--r--keyboards/handwired/concertina/readme.md6
-rw-r--r--keyboards/handwired/concertina/rules.mk9
11 files changed, 339 insertions, 0 deletions
diff --git a/keyboards/handwired/concertina/64key/64key.c b/keyboards/handwired/concertina/64key/64key.c
new file mode 100644
index 000000000..31211b0a9
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/64key.c
@@ -0,0 +1,17 @@
1/* Copyright 2020-2021 Viktor Eikman
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 "64key.h"
diff --git a/keyboards/handwired/concertina/64key/64key.h b/keyboards/handwired/concertina/64key/64key.h
new file mode 100644
index 000000000..a9e557fc7
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/64key.h
@@ -0,0 +1,56 @@
1/* Copyright 2020-2021 Viktor Eikman
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/*
22 * The matrix is constructed for ease of soldering and for density.
23 * The nomenclature is <side><cluster>_<column><row>.
24 *
25 * L: Left hand.
26 * R: Right hand.
27 * T: Thumb cluster.
28 * M: Main cluster.
29 *
30 * Numbers increase going to the right and away from the user on the
31 * right-hand side of the keyboard, looking directly at each of the two
32 * key clusters (main and thumb), one by one.
33 * This coordinate system is mirrored for the left-hand side.
34 */
35
36#define LAYOUT_64key( \
37 LT_32, LT_22, LT_12, RT_12, RT_22, RT_32, \
38 LT_31, LT_21, LT_11, LT_01, RT_01, RT_11, RT_21, RT_31, \
39 LT_20, LT_10, LT_00, RT_00, RT_10, RT_20, \
40 \
41 LM_34, LM_24, LM_14, LM_04, RM_04, RM_14, RM_24, RM_34, \
42 LM_53, LM_43, LM_33, LM_23, LM_13, LM_03, RM_03, RM_13, RM_23, RM_33, RM_43, RM_53, \
43 LM_52, LM_42, LM_32, LM_22, LM_12, LM_02, RM_02, RM_12, RM_22, RM_32, RM_42, RM_52, \
44 LM_51, LM_41, LM_31, LM_21, LM_11, RM_11, RM_21, RM_31, RM_41, RM_51, \
45 LM_20, RM_20 \
46 ) \
47 { \
48 { LT_00, LT_10, LT_20, LT_31, LM_20, LM_31, LM_41, LM_51 }, \
49 { LT_01, LT_11, LT_21, LM_11, LM_21, LM_32, LM_42, LM_52 }, \
50 { LT_12, LT_22, LT_32, LM_12, LM_22, LM_33, LM_43, LM_53 }, \
51 { LM_02, LM_03, LM_04, LM_13, LM_23, LM_14, LM_24, LM_34 }, \
52 { RT_00, RT_10, RT_20, RT_31, RM_20, RM_31, RM_41, RM_51 }, \
53 { RT_01, RT_11, RT_21, RM_11, RM_21, RM_32, RM_42, RM_52 }, \
54 { RT_12, RT_22, RT_32, RM_12, RM_22, RM_33, RM_43, RM_53 }, \
55 { RM_02, RM_03, RM_04, RM_13, RM_23, RM_14, RM_24, RM_34 }, \
56 }
diff --git a/keyboards/handwired/concertina/64key/config.h b/keyboards/handwired/concertina/64key/config.h
new file mode 100644
index 000000000..1b09c403f
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/config.h
@@ -0,0 +1,34 @@
1/* Copyright 2020-2021 Viktor Eikman
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#define MATRIX_ROWS 8
22#define MATRIX_COLS 8
23
24#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4, B5 }
25#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 }
26#define UNUSED_PINS { D3, D2 }
27
28/* LEDs are not used in the standard 64key configuration. */
29#define RGB_DI_PIN D3
30#define RGBLED_NUM 0
31
32#define DIODE_DIRECTION COL2ROW
33
34#define PERMISSIVE_HOLD
diff --git a/keyboards/handwired/concertina/64key/keymaps/default/config.h b/keyboards/handwired/concertina/64key/keymaps/default/config.h
new file mode 100644
index 000000000..4af423c3a
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/keymaps/default/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2020-2021 Viktor Eikman
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/* Custom space-cadet modifier and tap combinations: Brackets on Ctrl and braces on Alt. */
20#define LCPO_KEYS KC_LCTL, KC_TRNS, KC_LBRACKET
21#define RCPC_KEYS KC_RCTL, KC_TRNS, KC_RBRACKET
22#define LAPO_KEYS KC_LALT, KC_LSFT, KC_LBRACKET
23#define RAPC_KEYS KC_RALT, KC_RSFT, KC_RBRACKET
diff --git a/keyboards/handwired/concertina/64key/keymaps/default/keymap.c b/keyboards/handwired/concertina/64key/keymaps/default/keymap.c
new file mode 100644
index 000000000..e8425824f
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/keymaps/default/keymap.c
@@ -0,0 +1,93 @@
1/* Copyright 2020-2021 Viktor Eikman
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#include <keymap_colemak.h>
19#include <sendstring_colemak.h>
20
21enum layer_names {
22 _QWERTY, // OS-side Colemak. Default.
23 _COLEMAK, // Keyboard-side Colemak. Portability, emergency.
24 _GAMING, // Navigation clusters (only) change hands.
25 _NUMERIC // Numbers, function keys, special characters, mouse.
26};
27
28enum taps {
29 PNX, // Play/pause; next track.
30};
31
32qk_tap_dance_action_t tap_dance_actions[] = {
33 [PNX] = ACTION_TAP_DANCE_DOUBLE(KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK),
34};
35
36// Shorthand:
37#define LAYER_N MO(_NUMERIC)
38#define LAYER_C TG(_COLEMAK)
39#define LAYER_G TG(_GAMING)
40#define PASTE LSFT(KC_INS) // Terminal-compatible paste.
41#define SLQ RALT(KC_9) // Single left-side quotation mark (in Colemak).
42#define SRQ RALT(KC_0)
43
44const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
45
46[_QWERTY] = LAYOUT_64key(
47 KC_LSPO, KC_MINS, KC_EQL, KC_VOLD, KC_VOLU, KC_RSPC,
48 KC_LCPO, KC_LGUI, KC_HAEN, KC_ENT, KC_MUTE, TD(PNX), LAYER_N, KC_RCPC,
49 KC_LAPO, KC_SPC, SLQ, SRQ, KC_ESC, KC_RAPC,
50
51 CM_W, CM_F, CM_P, CM_G, CM_J, CM_L, CM_U, CM_Y,
52 KC_TAB, CM_Q, CM_R, CM_S, CM_T, CM_D, CM_H, CM_N, CM_E, CM_I, CM_SCLN, KC_BSLS,
53 KC_BSPC, CM_A, CM_X, CM_C, CM_V, CM_B, CM_K, CM_M, KC_COMM, KC_DOT, CM_O, KC_QUOT,
54 KC_DEL, CM_Z, KC_HOME, KC_PGUP, KC_END, KC_LEFT, KC_UP, KC_RGHT, KC_SLSH, KC_GRV,
55 KC_PGDN, KC_DOWN
56),
57
58[_COLEMAK] = LAYOUT_64key(
59 _______, _______, _______, _______, _______, _______,
60 _______, _______, _______, _______, _______, _______, _______, _______,
61 _______, _______, _______, _______, _______, _______,
62
63 KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y,
64 _______, KC_Q, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_SCLN, _______,
65 _______, KC_A, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, _______, _______, KC_O, _______,
66 _______, KC_Z, _______, _______, _______, _______, _______, _______, _______, _______,
67 _______, _______
68),
69
70[_GAMING] = LAYOUT_64key(
71 _______, _______, _______, _______, _______, _______,
72 _______, _______, _______, _______, _______, _______, _______, _______,
73 _______, _______, _______, _______, _______, _______,
74
75 _______, _______, _______, _______, _______, _______, _______, _______,
76 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
77 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
78 _______, _______, KC_LEFT, KC_UP, KC_RGHT, KC_HOME, KC_PGUP, KC_END, _______, _______,
79 KC_DOWN, KC_PGDN
80),
81
82[_NUMERIC] = LAYOUT_64key(
83 _______, _______, _______, KC_ACL1, KC_ACL2, _______,
84 _______, _______, LAYER_C, _______, KC_ACL0, _______, _______, _______,
85 _______, _______, _______, KC_SLEP, _______, _______,
86
87 KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9,
88 KC_F12, KC_F1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_F10, KC_F11,
89 _______, KC_1, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_APP, KC_0, PASTE,
90 KC_INS, KC_EXLM, KC_BTN1, KC_BTN3, KC_BTN2, KC_MS_L, KC_MS_U, KC_MS_R, KC_PSCR, RESET,
91 LAYER_G, KC_MS_D
92)
93};
diff --git a/keyboards/handwired/concertina/64key/readme.md b/keyboards/handwired/concertina/64key/readme.md
new file mode 100644
index 000000000..78d384f68
--- /dev/null
+++ b/keyboards/handwired/concertina/64key/readme.md
@@ -0,0 +1,15 @@
1The `64key` layout
2==================
3
4This folder represents the keyboard configuration identified as
5`concertina_64key` in the DMOTE application’s list of GNU make targets, as of
6version 0.7.0 of that application. The QMK code is fully compatible back to
7version 0.6.0, which introduced the Concertina.
8
9The default keymap for this layout has a QWERTY base layer but is intended for
10running Colemak on the OS side. It has a separate key layer that forces Colemak
11from the QMK side in case the keyboard has to be used with a computer that does
12not run Colemak.
13
14A full set of printable caps to match the keymap is available in the
15`dmote-keycap` application, [here](https://github.com/veikman/dmote-keycap).
diff --git a/keyboards/handwired/concertina/concertina.h b/keyboards/handwired/concertina/concertina.h
new file mode 100644
index 000000000..b8a0c4cff
--- /dev/null
+++ b/keyboards/handwired/concertina/concertina.h
@@ -0,0 +1,23 @@
1/* Copyright 2020-2021 Viktor Eikman
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#ifdef KEYBOARD_handwired_concertina_64key
20 #include "64key.h"
21#endif
22
23#include "quantum.h"
diff --git a/keyboards/handwired/concertina/config.h b/keyboards/handwired/concertina/config.h
new file mode 100644
index 000000000..4f6cbadc1
--- /dev/null
+++ b/keyboards/handwired/concertina/config.h
@@ -0,0 +1,26 @@
1/* Copyright 2020-2021 Viktor Eikman
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 descriptors */
22#define VENDOR_ID 0x444D
23#define PRODUCT_ID 0x3632
24#define DEVICE_VER 0x0001
25#define PRODUCT Concertina
26#define MANUFACTURER Viktor Eikman
diff --git a/keyboards/handwired/concertina/info.json b/keyboards/handwired/concertina/info.json
new file mode 100644
index 000000000..a7dd42b11
--- /dev/null
+++ b/keyboards/handwired/concertina/info.json
@@ -0,0 +1,37 @@
1{
2 "keyboard_name": "Concertina",
3 "url": "https://viktor.eikman.se/article/the-concertina/",
4 "maintainer": "veikman",
5 "width": 12,
6 "height": 8,
7 "layouts": {
8 "LAYOUT_64key": {
9 "key_count": 64,
10 "layout": [
11 {"x":2, "y":0.5}, {"x":3, "y":0}, {"x":4, "y":0.3},
12 {"x":8, "y":0.7}, {"x":9, "y":0.3}, {"x":10, "y":0},
13
14 {"x":2, "y":1.5}, {"x":3, "y":1}, {"x":4, "y":1.3}, {"x":5, "y":0.7},
15 {"x":8, "y":0.7}, {"x":9, "y":1.3}, {"x":10, "y":1}, {"x":11, "y":1.5},
16
17 {"x":3, "y":2}, {"x":4, "y":2.3}, {"x":5, "y":1.7},
18 {"x":8, "y":1.7}, {"x":9, "y":2.3}, {"x":10, "y":2},
19
20 {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4}, {"x":5, "y":4},
21 {"x":8, "y":4}, {"x":9, "y":4}, {"x":10, "y":4}, {"x":11, "y":4},
22
23 {"x":0, "y":5}, {"x":1, "y":5}, {"x":2, "y":5}, {"x":3, "y":5}, {"x":4, "y":5}, {"x":5, "y":5},
24 {"x":8, "y":5}, {"x":9, "y":5}, {"x":10, "y":5}, {"x":11, "y":5}, {"x":12, "y":5}, {"x":13, "y":5},
25
26 {"x":0, "y":6}, {"x":1, "y":6}, {"x":2, "y":6}, {"x":3, "y":6}, {"x":4, "y":6}, {"x":5, "y":6},
27 {"x":8, "y":6}, {"x":9, "y":6}, {"x":10, "y":6}, {"x":11, "y":6}, {"x":12, "y":6}, {"x":13, "y":6},
28
29 {"x":0, "y":7}, {"x":1, "y":7}, {"x":2, "y":7}, {"x":3, "y":7}, {"x":4, "y":7},
30 {"x":9, "y":7}, {"x":10, "y":7}, {"x":11, "y":7}, {"x":12, "y":7}, {"x":13, "y":7},
31
32 {"x":3, "y":8},
33 {"x":10, "y":8}
34 ]
35 }
36 }
37}
diff --git a/keyboards/handwired/concertina/readme.md b/keyboards/handwired/concertina/readme.md
new file mode 100644
index 000000000..36c0f53b6
--- /dev/null
+++ b/keyboards/handwired/concertina/readme.md
@@ -0,0 +1,6 @@
1Concertina
2==========
3
4The Concertina is one of the designs bundled with the DMOTE application, a CAD
5program specifically for novel keyboard cases, maintained
6[here](https://github.com/veikman/dactyl-keyboard).
diff --git a/keyboards/handwired/concertina/rules.mk b/keyboards/handwired/concertina/rules.mk
new file mode 100644
index 000000000..94d6eadd0
--- /dev/null
+++ b/keyboards/handwired/concertina/rules.mk
@@ -0,0 +1,9 @@
1# Written for a Pro Micro. The keyboard case is compatible with much else.
2MCU = atmega32u4
3BOOTLOADER = caterina
4
5# Build options:
6MOUSEKEY_ENABLE = yes
7EXTRAKEY_ENABLE = yes
8TAP_DANCE_ENABLE = yes
9RGBLIGHT_ENABLE = no