summaryrefslogtreecommitdiff
path: root/keyboards/frobiac/blackflat
diff options
context:
space:
mode:
authorfrobiac <frobiac@gmail.com>2023-03-10 08:05:20 +0100
committerGitHub <noreply@github.com>2023-03-09 23:05:20 -0800
commit313fc4cb8f4e41c921112d0b105b82ad5d8a653e (patch)
tree9d13787460b6fc9391517f4ccd35be8e873fc28a /keyboards/frobiac/blackflat
parent62a8f412093c582a51a27e0fa1d7ad8596433cb9 (diff)
[Keyboard] frobiac custom boards and layout (#19883)
Diffstat (limited to 'keyboards/frobiac/blackflat')
-rw-r--r--keyboards/frobiac/blackflat/config.h12
-rw-r--r--keyboards/frobiac/blackflat/info.json85
-rw-r--r--keyboards/frobiac/blackflat/keymaps/default/keymap.c85
-rw-r--r--keyboards/frobiac/blackflat/readme.md31
-rw-r--r--keyboards/frobiac/blackflat/rules.mk1
5 files changed, 214 insertions, 0 deletions
diff --git a/keyboards/frobiac/blackflat/config.h b/keyboards/frobiac/blackflat/config.h
new file mode 100644
index 0000000000..20801757dc
--- /dev/null
+++ b/keyboards/frobiac/blackflat/config.h
@@ -0,0 +1,12 @@
1// Copyright 2023 @frobiac
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#ifdef PS2_MOUSE_ENABLE
7# define PS2_DATA_PIN D4
8# define PS2_CLOCK_PIN B3
9
10# define PS2_MOUSE_USE_REMOTE_MODE
11# define PS2_MOUSE_INIT_DELAY 1000
12#endif
diff --git a/keyboards/frobiac/blackflat/info.json b/keyboards/frobiac/blackflat/info.json
new file mode 100644
index 0000000000..0d99816582
--- /dev/null
+++ b/keyboards/frobiac/blackflat/info.json
@@ -0,0 +1,85 @@
1{
2 "manufacturer": "frobiac",
3 "keyboard_name": "blackflat",
4 "url": "https://www.github.com/frobiac/adnw",
5 "maintainer": "frobiac",
6 "bootloader": "halfkay",
7 "processor": "atmega32u4",
8 "diode_direction": "COL2ROW",
9 "features": {
10 "audio": false,
11 "backlight": false,
12 "bootmagic": false,
13 "command": false,
14 "console": false,
15 "dynamic_macro": true,
16 "extrakey": true,
17 "mousekey": true,
18 "nkro": false,
19 "unicode": false,
20 "rgblight": false
21 },
22 "build": {
23 "lto": true
24 },
25 "matrix_pins": {
26 "cols": ["F0", "F1", "F4", "F5", "F6"],
27 "rows": ["B6", "B5", "B4", "F7", "D2", "C6", "C7", "D5"]
28 },
29 "usb": {
30 "device_version": "1.0.0",
31 "pid": "0x1D50",
32 "vid": "0x6033"
33 },
34 "layouts": {
35 "LAYOUT": {
36 "layout": [
37 {"matrix": [0, 0], "label":"K", "x":0, "y":1.00},
38 {"matrix": [0, 1], "label":"U", "x":1, "y":0.50},
39 {"matrix": [0, 2], "label":"Q", "x":2, "y":0.00},
40 {"matrix": [0, 3], "label":".", "x":3, "y":0.00},
41 {"matrix": [0, 4], "label":"J", "x":4, "y":0.00},
42
43 {"matrix": [4, 0], "label":"P", "x":6, "y":0.00},
44 {"matrix": [4, 1], "label":"C", "x":7, "y":0.00},
45 {"matrix": [4, 2], "label":"L", "x":8, "y":0.00},
46 {"matrix": [4, 3], "label":"M", "x":9, "y":0.50},
47 {"matrix": [4, 4], "label":"F", "x":10, "y":1.00},
48
49 {"matrix": [1, 0], "label":"H", "x":0, "y":2.00},
50 {"matrix": [1, 1], "label":"I", "x":1, "y":1.50},
51 {"matrix": [1, 2], "label":"E", "x":2, "y":1.00},
52 {"matrix": [1, 3], "label":"A", "x":3, "y":1.00},
53 {"matrix": [1, 4], "label":"O", "x":4, "y":1.00},
54
55 {"matrix": [5, 0], "label":"D", "x":6, "y":1.00},
56 {"matrix": [5, 1], "label":"T", "x":7, "y":1.00},
57 {"matrix": [5, 2], "label":"R", "x":8, "y":1.00},
58 {"matrix": [5, 3], "label":"N", "x":9, "y":1.50},
59 {"matrix": [5, 4], "label":"S", "x":10, "y":2.00},
60
61 {"matrix": [2, 0], "label":"X", "x":0, "y":3.00},
62 {"matrix": [2, 1], "label":"Y", "x":1, "y":2.50},
63 {"matrix": [2, 2], "label":"-", "x":2, "y":2.00},
64 {"matrix": [2, 3], "label":",", "x":3, "y":2.00},
65 {"matrix": [2, 4], "label":"/", "x":4, "y":2.00},
66
67 {"matrix": [6, 0], "label":"B", "x":6, "y":2.00},
68 {"matrix": [6, 1], "label":"G", "x":7, "y":2.00},
69 {"matrix": [6, 2], "label":"W", "x":8, "y":2.00},
70 {"matrix": [6, 3], "label":"V", "x":9, "y":2.50},
71 {"matrix": [6, 4], "label":"Z", "x":10, "y":3.00},
72
73 {"matrix": [3, 0], "label":"", "x":0, "y":0.00},
74 {"matrix": [3, 2], "label":"Gui", "x":2, "y":3.00},
75 {"matrix": [3, 3], "label":"Tab", "x":3, "y":3.00},
76 {"matrix": [3, 4], "label":"Spc", "x":4, "y":3.00},
77
78 {"matrix": [7, 0], "label":"L2", "x":6, "y":3.00},
79 {"matrix": [7, 1], "label":"Sh", "x":7, "y":3.00},
80 {"matrix": [7, 2], "label":"L3", "x":8, "y":3.00},
81 {"matrix": [7, 4], "label":"Fx", "x":10, "y":0.00}
82 ]
83 }
84 }
85}
diff --git a/keyboards/frobiac/blackflat/keymaps/default/keymap.c b/keyboards/frobiac/blackflat/keymaps/default/keymap.c
new file mode 100644
index 0000000000..8cf73b9316
--- /dev/null
+++ b/keyboards/frobiac/blackflat/keymaps/default/keymap.c
@@ -0,0 +1,85 @@
1// Copyright 2023 @frobiac
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6#include "keymap_german.h"
7
8enum layer_number {
9 _ADNW = 0,
10 _QWERTZ,
11 _NAVNUM,
12 _SYMBOL,
13 _FUNC,
14 _MOUSE,
15};
16
17#define CTL_TAB LCTL_T(KC_TAB)
18#define ALT_SPC LALT_T(KC_SPC)
19#define NAV_ESC LT(_NAVNUM, KC_ESC)
20#define SFT_BSP LSFT_T(KC_BSPC)
21#define SYM_ENT LT(_SYMBOL, KC_ENT)
22#define MOUSE_X LT(_MOUSE, KC_X)
23#define MOUSE_Y LT(_MOUSE, KC_Y)
24
25/*
26 * ┌───┐ ┌───┬───┬───┐ ┌───┬───┬───┐RST┌───┐
27 * │MOU├───┤ Q │ . │ J │ │ P │ C │ L ├───┤Fx │
28 * ├───┤ U ├───┼───┼───┤ ├─[TP]──┼───┤ M ├───┤
29 * │ K ├───┤ E │ A │ O │ │ D │ T │ R ├───┤ F │
30 * ├───┤ I ├───┼───┼───┤ ├───┼───┼───┤ N ├───┤
31 * │ H ├───┤ - │ ; │ / │ │ D │ G │ W ├───┤ S │
32 * ├───┤ Y ├───┼───┼───┤ ├───┼───┼───┤ V ├───┤
33 * │ X ├───┤ │Tab│Spc│ │Esc│Bsp│Ret├───┤ Z │
34 * └───┘ └───┴───┴───┘ └───┴───┴───┘ └───┘
35 *
36 */
37
38// clang-format off
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41 [_ADNW] = LAYOUT(
42 KC_K, KC_U, KC_Q, KC_DOT, KC_J, KC_P, KC_C, KC_L, KC_M, KC_F,
43 KC_H, KC_I, KC_E, KC_A, KC_O, KC_D, KC_T, KC_R, KC_N, KC_S,
44 MOUSE_X, DE_Y, DE_MINS, KC_COMM, DE_SLSH, KC_B, KC_G, KC_W, KC_V, RSFT_T(DE_Z),
45 XXXXXXX, KC_LGUI, CTL_TAB, ALT_SPC, NAV_ESC, SFT_BSP, SYM_ENT, MO(_FUNC)
46 ),
47
48 [_QWERTZ] = LAYOUT(
49 KC_Q, KC_W, KC_E, KC_R, KC_T, DE_Z, KC_U, KC_I, KC_O, KC_P,
50 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
51 MOUSE_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
52 XXXXXXX, KC_LGUI, CTL_TAB, ALT_SPC, NAV_ESC, SFT_BSP, SYM_ENT, MO(_FUNC)
53 ),
54
55 [_SYMBOL] = LAYOUT(
56 DE_AT, DE_DEG, DE_LBRC, DE_RBRC, DE_HASH, DE_EXLM, DE_LABK, DE_RABK, DE_EQL, DE_AMPR,
57 DE_BSLS, DE_EURO, DE_LCBR, DE_RCBR, DE_ASTR, DE_QUES, DE_LPRN, DE_RPRN, DE_PLUS, KC_ENT,
58 XXXXXXX, DE_DLR, DE_PIPE, DE_TILD, DE_GRV, DE_CIRC, DE_PERC, DE_DQUO, DE_QUOT, XXXXXXX,
59 _______, _______, _______, _______, _______, _______, _______, _______
60 ),
61
62 [_NAVNUM] = LAYOUT(
63 KC_PGUP, KC_BSPC, KC_UP, KC_DEL, KC_PGDN, DE_SS, KC_7, KC_8, KC_9, DE_ADIA,
64 KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_DOT, KC_4, KC_5, KC_6, DE_ODIA,
65 XXXXXXX, XXXXXXX, KC_INS, XXXXXXX, XXXXXXX, KC_0, KC_1, KC_2, KC_3, DE_UDIA,
66 _______, _______, _______, _______, _______, _______, _______, _______
67 ),
68
69 [_FUNC] = LAYOUT(
70 XXXXXXX, XXXXXXX, XXXXXXX, DF(_QWERTZ),DF(_ADNW), XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10,
71 DM_REC1, DM_RSTP, DM_PLY1, XXXXXXX, QK_RBT, XXXXXXX, KC_F4, KC_F5, KC_F6, KC_F11,
72 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, QK_BOOT, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F12,
73 _______, _______, _______, _______, _______, _______, _______, _______
74 ),
75
76 [_MOUSE] = LAYOUT(
77 KC_WH_L, XXXXXXX, KC_MS_U, XXXXXXX, XXXXXXX, KC_ACL0, XXXXXXX, KC_BTN3, XXXXXXX, KC_BTN5,
78 KC_WH_R, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_U, KC_ACL1, XXXXXXX, KC_BTN1, KC_BTN2, KC_BTN4,
79 MOUSE_X, KC_BTN1, KC_BTN3, KC_BTN2, KC_WH_D, KC_ACL2, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
80 _______, _______, _______, _______, _______, _______, _______, _______
81 ),
82
83};
84
85// clang-format on
diff --git a/keyboards/frobiac/blackflat/readme.md b/keyboards/frobiac/blackflat/readme.md
new file mode 100644
index 0000000000..1bfba962f1
--- /dev/null
+++ b/keyboards/frobiac/blackflat/readme.md
@@ -0,0 +1,31 @@
1# frobiac/blackflat
2
3![frobiac/blackflat](https://i.imgur.com/eaewuolh.jpeg)
4
5Custom 3D-printed and handwired 36-key split-keyboard with trackpoint developed in 2016.
6
7* Keyboard Maintainer: [frobiac](https://github.com/frobiac)
8* Hardware Supported: Teensy-2.0, IBM Trackpoint
9* Development History: [deskthority.net](https://deskthority.net/viewtopic.php?p=339638#p339638)
10* Layout [Alpha KLE](http://www.keyboard-layout-editor.com/#/gists/6a6ec84d59fc346effbe894af159eabd) (same as BlackBowl)
11* [Original Firmware](https://github.com/frobiac/adnw)
12
13Make example for this keyboard (after setting up your build environment):
14
15 make frobiac/blackflat
16
17Flashing example for this keyboard:
18
19 make frobiac/blackflat:flash
20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
22
23## Bootloader
24
25Enter the bootloader in 2 ways:
26
27* **Physical reset button**: Briefly press the button between left-hand topmost ringfinger key and USB socket
28* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
29
30
31
diff --git a/keyboards/frobiac/blackflat/rules.mk b/keyboards/frobiac/blackflat/rules.mk
new file mode 100644
index 0000000000..6e7633bfe0
--- /dev/null
+++ b/keyboards/frobiac/blackflat/rules.mk
@@ -0,0 +1 @@
# This file intentionally left blank