summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDOIO2022 <116554792+DOIO2022@users.noreply.github.com>2024-10-03 08:27:36 +0800
committerGitHub <noreply@github.com>2024-10-02 17:27:36 -0700
commit6374bad54060995eb43dc3bf2e6975d787aca53d (patch)
tree607ff3ceccb5f673d16e7188de0b5954a9c1d0bb
parentb78118b2dd5267516a80e0fa7460ca491aafef4c (diff)
Add KB09-01 keyboard (#24044)
Co-authored-by: jack <jack@pngu.org>
-rw-r--r--keyboards/doio/kb09/keyboard.json123
-rw-r--r--keyboards/doio/kb09/keymaps/default/keymap.c58
-rw-r--r--keyboards/doio/kb09/readme.md26
3 files changed, 207 insertions, 0 deletions
diff --git a/keyboards/doio/kb09/keyboard.json b/keyboards/doio/kb09/keyboard.json
new file mode 100644
index 0000000000..e3012f510c
--- /dev/null
+++ b/keyboards/doio/kb09/keyboard.json
@@ -0,0 +1,123 @@
1{
2 "manufacturer": "DOIO",
3 "keyboard_name": "KB09-01",
4 "maintainer": "DOIO2022",
5 "bootloader": "stm32duino",
6 "diode_direction": "COL2ROW",
7 "encoder": {
8 "rotary": [
9 {"pin_a": "B5", "pin_b": "B6"},
10 {"pin_a": "A1", "pin_b": "A2"}
11 ]
12 },
13 "features": {
14 "bootmagic": true,
15 "command": false,
16 "console": false,
17 "encoder": true,
18 "extrakey": true,
19 "mousekey": true,
20 "nkro": true,
21 "rgb_matrix": true
22 },
23 "matrix_pins": {
24 "cols": ["B14", "B13", "B12", "B0", "A7"],
25 "rows": ["B3", "B4", "B9", "B8"]
26 },
27 "processor": "STM32F103",
28 "rgb_matrix": {
29 "animations": {
30 "alphas_mods": true,
31 "band_pinwheel_sat": true,
32 "band_pinwheel_val": true,
33 "band_sat": true,
34 "band_spiral_sat": true,
35 "band_spiral_val": true,
36 "band_val": true,
37 "breathing": true,
38 "cycle_all": true,
39 "cycle_left_right": true,
40 "cycle_out_in": true,
41 "cycle_out_in_dual": true,
42 "cycle_pinwheel": true,
43 "cycle_spiral": true,
44 "cycle_up_down": true,
45 "digital_rain": true,
46 "dual_beacon": true,
47 "gradient_left_right": true,
48 "gradient_up_down": true,
49 "hue_breathing": true,
50 "hue_pendulum": true,
51 "hue_wave": true,
52 "jellybean_raindrops": true,
53 "multisplash": true,
54 "pixel_fractal": true,
55 "pixel_rain": true,
56 "rainbow_beacon": true,
57 "rainbow_moving_chevron": true,
58 "rainbow_pinwheels": true,
59 "raindrops": true,
60 "solid_multisplash": true,
61 "solid_reactive": true,
62 "solid_reactive_cross": true,
63 "solid_reactive_multicross": true,
64 "solid_reactive_multinexus": true,
65 "solid_reactive_multiwide": true,
66 "solid_reactive_nexus": true,
67 "solid_reactive_simple": true,
68 "solid_reactive_wide": true,
69 "solid_splash": true,
70 "splash": true,
71 "typing_heatmap": true
72 },
73 "default": {
74 "animation": "cycle_up_down"
75 },
76 "driver": "ws2812",
77 "layout": [
78 {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
79 {"matrix": [0, 1], "x": 56, "y": 0, "flags": 4},
80 {"matrix": [0, 2], "x": 112, "y": 0, "flags": 4},
81 {"matrix": [1, 0], "x": 0, "y": 21, "flags": 4},
82 {"matrix": [1, 1], "x": 56, "y": 21, "flags": 4},
83 {"matrix": [1, 2], "x": 112, "y": 21, "flags": 4},
84 {"matrix": [2, 0], "x": 0, "y": 42, "flags": 4},
85 {"matrix": [2, 1], "x": 56, "y": 42, "flags": 4},
86 {"matrix": [2, 2], "x": 112, "y": 42, "flags": 4}
87 ],
88 "max_brightness": 200,
89 "sleep": true
90 },
91 "url": "",
92 "usb": {
93 "device_version": "0.0.1",
94 "pid": "0x0901",
95 "vid": "0xD010"
96 },
97 "ws2812": {
98 "pin": "A10"
99 },
100 "layouts": {
101 "LAYOUT": {
102 "layout": [
103 {"matrix": [1, 3], "x": 1, "y": 0},
104 {"matrix": [0, 0], "x": 4, "y": 0},
105 {"matrix": [0, 1], "x": 5, "y": 0},
106 {"matrix": [0, 2], "x": 6, "y": 0},
107 {"matrix": [0, 4], "x": 8, "y": 0},
108 {"matrix": [1, 4], "x": 9, "y": 0},
109 {"matrix": [0, 3], "x": 0, "y": 1},
110 {"matrix": [2, 3], "x": 2, "y": 1},
111 {"matrix": [1, 0], "x": 4, "y": 1},
112 {"matrix": [1, 1], "x": 5, "y": 1},
113 {"matrix": [1, 2], "x": 6, "y": 1},
114 {"matrix": [3, 0], "x": 1, "y": 2},
115 {"matrix": [2, 0], "x": 4, "y": 2},
116 {"matrix": [2, 1], "x": 5, "y": 2},
117 {"matrix": [2, 2], "x": 6, "y": 2},
118 {"matrix": [3, 1], "x": 3, "y": 3},
119 {"matrix": [3, 2], "x": 3, "y": 3}
120 ]
121 }
122 }
123} \ No newline at end of file
diff --git a/keyboards/doio/kb09/keymaps/default/keymap.c b/keyboards/doio/kb09/keymaps/default/keymap.c
new file mode 100644
index 0000000000..657a6bc428
--- /dev/null
+++ b/keyboards/doio/kb09/keymaps/default/keymap.c
@@ -0,0 +1,58 @@
1/* Copyright 2022 DOIO
2 * Copyright 2022 DOIO2022 <https://github.com/DOIO2022>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18
19#include QMK_KEYBOARD_H
20
21enum layer_names {
22 _LAY0,
23 _LAY1,
24 _LAY2,
25 _LAY3
26};
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29 [_LAY0] = LAYOUT(
30 KC_UP, KC_1, KC_2, KC_3, KC_MPLY, KC_MUTE,
31 KC_LEFT, KC_RIGHT, KC_4, KC_5, KC_6,
32 KC_DOWN, KC_7, KC_8, KC_9,
33 TO(1), LWIN(KC_D)),
34 [_LAY1] = LAYOUT(
35 KC_TRNS, C(S(KC_S)), C(KC_H), C(KC_G), KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, C(S(KC_A)), C(KC_J), C(S(KC_G)),
37 KC_TRNS, C(KC_Z), KC_DEL, C(A(S(KC_E))),
38 TO(2), KC_TRNS),
39 [_LAY2] = LAYOUT(
40 KC_TRNS, S(KC_I), A(KC_EQL), C(S(KC_M)), KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, S(KC_O), A(KC_MINS), S(KC_M),
42 KC_TRNS, KC_C, KC_V, C(KC_M),
43 TO(3), KC_TRNS),
44 [_LAY3] = LAYOUT(
45 KC_TRNS, RGB_SPI, RGB_SPD, RGB_HUI, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, RGB_SAI, RGB_SAD, RGB_HUD,
47 KC_TRNS, RGB_MOD, RGB_VAI, RGB_VAD,
48 TO(0), KC_TRNS)
49};
50
51#ifdef ENCODER_MAP_ENABLE
52const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
53 [_LAY0] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
54 [_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
55 [_LAY2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
56 [_LAY3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
57};
58#endif
diff --git a/keyboards/doio/kb09/readme.md b/keyboards/doio/kb09/readme.md
new file mode 100644
index 0000000000..a7b23dc58d
--- /dev/null
+++ b/keyboards/doio/kb09/readme.md
@@ -0,0 +1,26 @@
1# doio/kb09
2
3![kb09-01](https://i.imgur.com/MVKeweC.png)
4
5QMK for DOIO GBA keypad .
6
7* Keyboard Maintainer: DOIO2022
8* Hardware Supported: DOIO GBA keypad
9
10Make example for this keyboard (after setting up your build environment):
11
12 make doio/kb09:default
13
14Flashing example for this keyboard:
15
16 make doio/kb09:default:flash
17
18See 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).
19
20## Bootloader
21
22Enter the bootloader in 3 ways:
23
24* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
25* **Physical reset button**: Briefly press the button on the back of the PCB
26* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available