summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/trkeyboards/trk2/keyboard.json124
-rw-r--r--keyboards/trkeyboards/trk2/keymaps/default/keymap.c29
-rw-r--r--keyboards/trkeyboards/trk2/keymaps/default/rules.mk1
-rw-r--r--keyboards/trkeyboards/trk2/readme.md26
4 files changed, 180 insertions, 0 deletions
diff --git a/keyboards/trkeyboards/trk2/keyboard.json b/keyboards/trkeyboards/trk2/keyboard.json
new file mode 100644
index 0000000000..f62ee53a03
--- /dev/null
+++ b/keyboards/trkeyboards/trk2/keyboard.json
@@ -0,0 +1,124 @@
1{
2 "manufacturer": "Tvrd Rad Keyboards",
3 "keyboard_name": "Tvrd Rad Keyboards TRK2",
4 "maintainer": "tvrdrad-keyboards",
5 "bootloader": "halfkay",
6 "diode_direction": "COL2ROW",
7 "encoder": {
8 "rotary": [
9 {"pin_a": "B0", "pin_b": "B1", "resolution": 2}
10 ]
11 },
12 "features": {
13 "bootmagic": true,
14 "encoder": true,
15 "extrakey": true,
16 "mousekey": true,
17 "nkro": true,
18 "rgblight": true
19 },
20 "matrix_pins": {
21 "cols": ["B3", "B2", "D2", "D3", "C6", "C7", "D5", "F6", "F7", "B6", "B5", "B4", "D7", "D6", "D4"],
22 "rows": ["F5", "F4", "F1", "F0", "B7"]
23 },
24 "processor": "atmega32u4",
25 "rgblight": {
26 "animations": {
27 "alternating": true,
28 "breathing": true,
29 "christmas": true,
30 "knight": true,
31 "rainbow_mood": true,
32 "rainbow_swirl": true,
33 "snake": true,
34 "static_gradient": true
35 },
36 "led_count": 19,
37 "max_brightness": 120
38 },
39 "url": "https://www.trkeyboards.com/",
40 "usb": {
41 "device_version": "0.0.1",
42 "pid": "0x0002",
43 "vid": "0x5452"
44 },
45 "ws2812": {
46 "pin": "E6"
47 },
48 "layouts": {
49 "LAYOUT": {
50 "layout": [
51 {"matrix": [0, 0], "x": 0.75, "y": 0},
52 {"matrix": [0, 1], "x": 1.75, "y": 0},
53 {"matrix": [0, 2], "x": 2.75, "y": 0},
54 {"matrix": [0, 3], "x": 4, "y": 0},
55 {"matrix": [0, 4], "x": 5, "y": 0},
56 {"matrix": [0, 5], "x": 6, "y": 0},
57 {"matrix": [0, 6], "x": 7, "y": 0},
58 {"matrix": [0, 7], "x": 10, "y": 0},
59 {"matrix": [0, 8], "x": 11, "y": 0},
60 {"matrix": [0, 9], "x": 12, "y": 0},
61 {"matrix": [0, 10], "x": 13, "y": 0},
62 {"matrix": [0, 11], "x": 14.25, "y": 0},
63 {"matrix": [0, 12], "x": 15.25, "y": 0},
64 {"matrix": [0, 13], "x": 16.25, "y": 0},
65 {"matrix": [0, 14], "x": 17.25, "y": 0},
66 {"matrix": [1, 0], "x": 0.5, "y": 1, "w": 1.5},
67 {"matrix": [1, 1], "x": 2, "y": 1},
68 {"matrix": [1, 2], "x": 3.5, "y": 1},
69 {"matrix": [1, 3], "x": 4.5, "y": 1},
70 {"matrix": [1, 4], "x": 5.5, "y": 1},
71 {"matrix": [1, 5], "x": 6.5, "y": 1},
72 {"matrix": [1, 6], "x": 9.25, "y": 1},
73 {"matrix": [1, 7], "x": 10.25, "y": 1},
74 {"matrix": [1, 8], "x": 11.25, "y": 1},
75 {"matrix": [1, 9], "x": 12.25, "y": 1},
76 {"matrix": [1, 10], "x": 13.25, "y": 1},
77 {"matrix": [1, 11], "x": 14.75, "y": 1},
78 {"matrix": [1, 12], "x": 15.75, "y": 1},
79 {"matrix": [1, 13], "x": 16.75, "y": 1, "w": 1.5},
80 {"matrix": [1, 14], "x": 18.25, "y": 1},
81 {"matrix": [2, 0], "x": 0.25, "y": 2, "w": 1.75},
82 {"matrix": [2, 1], "x": 2, "y": 2},
83 {"matrix": [2, 2], "x": 3.75, "y": 2},
84 {"matrix": [2, 3], "x": 4.75, "y": 2},
85 {"matrix": [2, 4], "x": 5.75, "y": 2},
86 {"matrix": [2, 5], "x": 6.75, "y": 2},
87 {"matrix": [2, 6], "x": 9.5, "y": 2},
88 {"matrix": [2, 7], "x": 10.5, "y": 2},
89 {"matrix": [2, 8], "x": 11.5, "y": 2},
90 {"matrix": [2, 9], "x": 12.5, "y": 2},
91 {"matrix": [2, 10], "x": 18.25, "y": 0},
92 {"matrix": [2, 11], "x": 14, "y": 2},
93 {"matrix": [2, 12], "x": 15, "y": 2},
94 {"matrix": [2, 13], "x": 16, "y": 2, "w": 2.25},
95 {"matrix": [2, 14], "x": 18.25, "y": 2},
96 {"matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
97 {"matrix": [3, 1], "x": 2.25, "y": 3},
98 {"matrix": [3, 2], "x": 4.25, "y": 3},
99 {"matrix": [3, 3], "x": 5.25, "y": 3},
100 {"matrix": [3, 4], "x": 6.25, "y": 3},
101 {"matrix": [3, 5], "x": 7.25, "y": 3},
102 {"matrix": [4, 5], "x": 8.75, "y": 3},
103 {"matrix": [3, 6], "x": 9.75, "y": 3},
104 {"matrix": [3, 7], "x": 10.75, "y": 3},
105 {"matrix": [3, 8], "x": 11.75, "y": 3},
106 {"matrix": [3, 9], "x": 12.75, "y": 3},
107 {"matrix": [3, 11], "x": 14.5, "y": 3},
108 {"matrix": [3, 12], "x": 15.5, "y": 3, "w": 1.75},
109 {"matrix": [3, 13], "x": 17.25, "y": 3},
110 {"matrix": [3, 14], "x": 18.25, "y": 3},
111 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
112 {"matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
113 {"matrix": [4, 2], "x": 4.5, "y": 4, "w": 1.25},
114 {"matrix": [4, 4], "x": 5.75, "y": 4, "w": 2.75},
115 {"matrix": [4, 6], "x": 9, "y": 4, "w": 2.25},
116 {"matrix": [4, 8], "x": 11.25, "y": 4},
117 {"matrix": [4, 11], "x": 15, "y": 4, "w": 1.25},
118 {"matrix": [4, 12], "x": 16.25, "y": 4},
119 {"matrix": [4, 13], "x": 17.25, "y": 4},
120 {"matrix": [4, 14], "x": 18.25, "y": 4}
121 ]
122 }
123 }
124}
diff --git a/keyboards/trkeyboards/trk2/keymaps/default/keymap.c b/keyboards/trkeyboards/trk2/keymaps/default/keymap.c
new file mode 100644
index 0000000000..0791908af1
--- /dev/null
+++ b/keyboards/trkeyboards/trk2/keymaps/default/keymap.c
@@ -0,0 +1,29 @@
1// Copyright 2025 Tvrd Rad Keyboards
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7
8 [0] = LAYOUT(
9 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_KP_SLASH, KC_KP_ASTERISK,
10 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_HOME,
11 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_MUTE, KC_SCLN, KC_QUOTE, KC_ENTER, KC_END,
12 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RSFT, KC_UP, KC_DELETE,
13 KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_BSPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
14 ),
15 [1] = LAYOUT(
16 QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PMNS, KC_PPLS,
17 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP,
18 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN,
19 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
20 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
21 )
22};
23
24#if defined(ENCODER_MAP_ENABLE)
25const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
26 [0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
27 [1] = { ENCODER_CCW_CW(_______, _______) }
28};
29#endif
diff --git a/keyboards/trkeyboards/trk2/keymaps/default/rules.mk b/keyboards/trkeyboards/trk2/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ee32568148
--- /dev/null
+++ b/keyboards/trkeyboards/trk2/keymaps/default/rules.mk
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/trkeyboards/trk2/readme.md b/keyboards/trkeyboards/trk2/readme.md
new file mode 100644
index 0000000000..7e6edbac04
--- /dev/null
+++ b/keyboards/trkeyboards/trk2/readme.md
@@ -0,0 +1,26 @@
1# Tvrd Rad Keyboards TRK2
2
3![TRK2](https://i.imgur.com/iO2zIIT.jpeg)
4
5Custom keyboard designed by Tvrd Rad Keyboards aka TRK2
6
7* Keyboard Maintainer: [Tvrd Rad Keyboards](https://www.trkeyboards.com)
8* Hardware Supported: TRK2 PCB
9* Hardware Availability: https://www.trkeyboards.com/rs/tastature/5-trk2/
10
11Make example for this keyboard (after setting up your build environment):
12
13 make trkeyboards/trk2:default
14
15Flashing example for this keyboard:
16
17 make trkeyboards/trk2:default:flash
18
19See 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).
20
21## Bootloader
22
23Enter the bootloader in 2 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
26* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available