Skip to content

Commit 6812bef

Browse files
moyi4681fauxpark
authored and
Lorenzo Castoldi
committed
add tofujr v2 keyboard (qmk#21740)
Co-authored-by: Ryan <[email protected]>
1 parent 8dcd35c commit 6812bef

File tree

5 files changed

+173
-2
lines changed

5 files changed

+173
-2
lines changed

keyboards/dztech/tofu/jr/readme.md keyboards/dztech/tofu/jr/v1/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# TOFU_JR
1+
# TOFU_JR_V1
22
A customizable 65% RGB keyboard.
33

44
* Keyboard Maintainer: [moyi4681](https://github.com/moyi4681)
5-
* Hardware Supported: TOFU_JR
5+
* Hardware Supported: TOFU_JR_V1
66
* Hardware Availability: [KBDfans](https://kbdfans.com/)
77

88
## Bootloader mode

keyboards/dztech/tofu/jr/v2/config.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Copyright 2023 DZTECH <[email protected]>
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+
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 8)
20+
21+
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
22+
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
23+
24+

keyboards/dztech/tofu/jr/v2/info.json

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"bootloader": "rp2040",
3+
"processor": "RP2040",
4+
"diode_direction": "COL2ROW",
5+
"features": {
6+
"bootmagic": true,
7+
"command": false,
8+
"console": false,
9+
"extrakey": true,
10+
"mousekey": true,
11+
"nkro": true,
12+
"rgblight": true
13+
},
14+
"matrix_pins": {
15+
"cols": ["GP25", "GP24", "GP23", "GP1", "GP7", "GP21", "GP20", "GP19", "GP18", "GP17", "GP16", "GP15", "GP14", "GP13", "GP12"],
16+
"rows": ["GP29", "GP28", "GP27", "GP26", "GP22"]
17+
},
18+
"indicators": {
19+
"caps_lock": "GP11"
20+
},
21+
"usb": {
22+
"device_version": "1.0.0",
23+
"pid": "0x1425",
24+
"vid": "0x445A"
25+
},
26+
"rgblight": {
27+
"brightness_steps": 10,
28+
"hue_steps": 10,
29+
"led_count": 16,
30+
"saturation_steps": 10,
31+
"sleep": true,
32+
"animations": {
33+
"alternating": true,
34+
"breathing": true,
35+
"christmas": true,
36+
"knight": true,
37+
"rainbow_mood": true,
38+
"rainbow_swirl": true,
39+
"rgb_test": true,
40+
"snake": true,
41+
"static_gradient": true,
42+
"twinkle": true
43+
}
44+
},
45+
"ws2812": {
46+
"pin": "GP2",
47+
"driver": "vendor"
48+
},
49+
"community_layouts": ["65_ansi"],
50+
"layouts": {
51+
"LAYOUT_65_ansi": {
52+
"layout": [
53+
{"matrix": [0, 0], "x": 0, "y": 0},
54+
{"matrix": [0, 1], "x": 1, "y": 0},
55+
{"matrix": [0, 2], "x": 2, "y": 0},
56+
{"matrix": [0, 3], "x": 3, "y": 0},
57+
{"matrix": [0, 4], "x": 4, "y": 0},
58+
{"matrix": [0, 5], "x": 5, "y": 0},
59+
{"matrix": [0, 6], "x": 6, "y": 0},
60+
{"matrix": [0, 7], "x": 7, "y": 0},
61+
{"matrix": [0, 8], "x": 8, "y": 0},
62+
{"matrix": [0, 9], "x": 9, "y": 0},
63+
{"matrix": [0, 10], "x": 10, "y": 0},
64+
{"matrix": [0, 11], "x": 11, "y": 0},
65+
{"matrix": [0, 12], "x": 12, "y": 0},
66+
{"matrix": [0, 13], "w": 2, "x": 13, "y": 0},
67+
{"matrix": [0, 14], "x": 15, "y": 0},
68+
{"matrix": [1, 0], "w": 1.5, "x": 0, "y": 1},
69+
{"matrix": [1, 1], "x": 1.5, "y": 1},
70+
{"matrix": [1, 2], "x": 2.5, "y": 1},
71+
{"matrix": [1, 3], "x": 3.5, "y": 1},
72+
{"matrix": [1, 4], "x": 4.5, "y": 1},
73+
{"matrix": [1, 5], "x": 5.5, "y": 1},
74+
{"matrix": [1, 6], "x": 6.5, "y": 1},
75+
{"matrix": [1, 7], "x": 7.5, "y": 1},
76+
{"matrix": [1, 8], "x": 8.5, "y": 1},
77+
{"matrix": [1, 9], "x": 9.5, "y": 1},
78+
{"matrix": [1, 10], "x": 10.5, "y": 1},
79+
{"matrix": [1, 11], "x": 11.5, "y": 1},
80+
{"matrix": [1, 12], "x": 12.5, "y": 1},
81+
{"matrix": [1, 13], "w": 1.5, "x": 13.5, "y": 1},
82+
{"matrix": [1, 14], "x": 15, "y": 1},
83+
{"matrix": [2, 0], "w": 1.75, "x": 0, "y": 2},
84+
{"matrix": [2, 1], "x": 1.75, "y": 2},
85+
{"matrix": [2, 2], "x": 2.75, "y": 2},
86+
{"matrix": [2, 3], "x": 3.75, "y": 2},
87+
{"matrix": [2, 4], "x": 4.75, "y": 2},
88+
{"matrix": [2, 5], "x": 5.75, "y": 2},
89+
{"matrix": [2, 6], "x": 6.75, "y": 2},
90+
{"matrix": [2, 7], "x": 7.75, "y": 2},
91+
{"matrix": [2, 8], "x": 8.75, "y": 2},
92+
{"matrix": [2, 9], "x": 9.75, "y": 2},
93+
{"matrix": [2, 10], "x": 10.75, "y": 2},
94+
{"matrix": [2, 11], "x": 11.75, "y": 2},
95+
{"matrix": [2, 12], "w": 2.25, "x": 12.75, "y": 2},
96+
{"matrix": [2, 14], "x": 15, "y": 2},
97+
{"matrix": [3, 0], "w": 2.25, "x": 0, "y": 3},
98+
{"matrix": [3, 1], "x": 2.25, "y": 3},
99+
{"matrix": [3, 2], "x": 3.25, "y": 3},
100+
{"matrix": [3, 3], "x": 4.25, "y": 3},
101+
{"matrix": [3, 4], "x": 5.25, "y": 3},
102+
{"matrix": [3, 5], "x": 6.25, "y": 3},
103+
{"matrix": [3, 6], "x": 7.25, "y": 3},
104+
{"matrix": [3, 7], "x": 8.25, "y": 3},
105+
{"matrix": [3, 8], "x": 9.25, "y": 3},
106+
{"matrix": [3, 9], "x": 10.25, "y": 3},
107+
{"matrix": [3, 10], "x": 11.25, "y": 3},
108+
{"matrix": [3, 11], "w": 1.75, "x": 12.25, "y": 3},
109+
{"matrix": [3, 13], "x": 14, "y": 3},
110+
{"matrix": [3, 14], "x": 15, "y": 3},
111+
{"matrix": [4, 0], "w": 1.25, "x": 0, "y": 4},
112+
{"matrix": [4, 1], "w": 1.25, "x": 1.25, "y": 4},
113+
{"matrix": [4, 2], "w": 1.25, "x": 2.5, "y": 4},
114+
{"matrix": [4, 6], "w": 6.25, "x": 3.75, "y": 4},
115+
{"matrix": [4, 8], "x": 10, "y": 4},
116+
{"matrix": [4, 9], "x": 11, "y": 4},
117+
{"matrix": [4, 10], "x": 12, "y": 4},
118+
{"matrix": [4, 12], "x": 13, "y": 4},
119+
{"matrix": [4, 13], "x": 14, "y": 4},
120+
{"matrix": [4, 14], "x": 15, "y": 4}
121+
]
122+
}
123+
}
124+
}

keyboards/dztech/tofu/jr/v2/readme.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# TOFU_JR_V2
2+
A customizable 65% hotswap with RGB backlight keyboard.
3+
4+
* Keyboard Maintainer: [moyi4681](https://github.com/moyi4681)
5+
* Hardware Supported: TOFU_JR_V2
6+
* Hardware Availability: [KBDfans](https://kbdfans.com/)
7+
8+
## Bootloader mode
9+
10+
Enter the bootloader in 3 ways:
11+
12+
* Bootmagic reset: Hold down the left top key then plug in the USB cable.
13+
* Physical reset button: Double tap the reset button.
14+
* Keycode in layout: Press the key mapped to QK_BOOT if it is available.
15+
16+
## Making firmware
17+
18+
Make example for this keyboard (after setting up your build environment):
19+
20+
make dztech/tofu/jr/v2:default
21+
22+
See 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).

keyboards/dztech/tofu/jr/v2/rules.mk

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file intentionally left blank

0 commit comments

Comments
 (0)