Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD KB19 keyboard #22393

Merged
merged 29 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dae2cb3
Add files via upload
DOIO2022 Nov 3, 2023
73ee04f
Update keyboards/doio/kb3x/config.h
DOIO2022 Nov 3, 2023
4d83ef7
Update keyboards/doio/kb3x/info.json
DOIO2022 Nov 3, 2023
eeb1ff2
Update keyboards/doio/kb3x/keymaps/via/keymap.c
DOIO2022 Nov 3, 2023
2daee0f
Update keyboards/doio/kb3x/config.h
DOIO2022 Nov 3, 2023
2ad4280
Update keyboards/doio/kb3x/keymaps/default/keymap.c
DOIO2022 Nov 3, 2023
2dbbf17
Update rules.mk
DOIO2022 Nov 3, 2023
d0398d8
Update info.json
DOIO2022 Nov 3, 2023
289a4b1
Update keyboards/doio/kb3x/info.json
DOIO2022 Nov 4, 2023
f89ff69
Update keyboards/doio/kb3x/rules.mk
DOIO2022 Nov 4, 2023
3d08bc6
Add files via upload
DOIO2022 Nov 4, 2023
7540c53
Update keyboards/doio/kb3x/info.json
DOIO2022 Nov 4, 2023
35a5a8b
Update keyboards/doio/kb3x/config.h
DOIO2022 Nov 4, 2023
33dee83
Delete keyboards/doio/kb3x/rules.mk
DOIO2022 Nov 4, 2023
990fd41
Update keyboards/doio/kb3x/keymaps/default/keymap.c
DOIO2022 Nov 9, 2023
2b514ec
Update keyboards/doio/kb3x/keymaps/via/keymap.c
DOIO2022 Nov 9, 2023
22dc75a
Add KB19
DOIO2022 Dec 4, 2023
7ea7210
Delete keyboards/doio/kb3x directory
DOIO2022 Dec 4, 2023
f873110
format info.json
DOIO2022 Dec 5, 2023
8acf6f5
format info.json
DOIO2022 Dec 5, 2023
ab113cd
Create rules.mk
DOIO2022 Dec 5, 2023
456cebe
Update rules.mk
DOIO2022 Dec 5, 2023
1cca0db
Update keyboards/doio/kb19/config.h
DOIO2022 Dec 13, 2023
b04f6ba
Update info.json
DOIO2022 Dec 13, 2023
b55dcd3
Update keymap.c
DOIO2022 Dec 13, 2023
e607db2
Update keymap.c
DOIO2022 Dec 13, 2023
5f349ea
Delete keyboards/doio/kb19/config.h
DOIO2022 Dec 13, 2023
f4cf22e
Update keyboards/doio/kb19/keymaps/via/keymap.c
DOIO2022 Dec 14, 2023
c9b74ef
Update keyboards/doio/kb19/keymaps/default/keymap.c
DOIO2022 Dec 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions keyboards/doio/kb19/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"keyboard_name": "KB19-01",
"manufacturer": "DOIO",
"url": "",
"maintainer": "DOIO2022",
"usb": {
"vid": "0xD010",
"pid": "0x1901",
"device_version": "0.0.1"
},
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"console": false,
"command": false,
"encoder": true,
"nkro": false,
"rgblight": true
},
"matrix_pins": {
"cols": ["B14", "B13", "B12", "B0", "A7"],
"rows": ["B3", "B4", "B9", "B8", "B1"]
},
"ws2812": {
"pin": "A10"
},
"encoder": {
"rotary": [
{"pin_a": "B5", "pin_b": "B6"}
]
},
"rgblight": {
"led_count": 19,
"animations": {
"breathing": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"snake": true,
"knight": true,
"christmas": true,
"static_gradient": true,
"rgb_test": true,
"alternating": true,
"twinkle": true
}
},
"processor": "STM32F103",
"bootloader": "stm32duino",
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 5, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1, "h": 2},
{"matrix": [1, 4], "x": 5, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3},
{"matrix": [3, 3], "x": 3, "y": 3, "h": 2},
{"matrix": [4, 0], "x": 0, "y": 4, "w": 2},
{"matrix": [4, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 5, "y": 4}
]
}
}
}
34 changes: 34 additions & 0 deletions keyboards/doio/kb19/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Copyright 2022 DOIO
* Copyright 2022 DOIO2022 <https://github.com/DOIO2022>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, RGB_MOD,
KC_P7, KC_P8, KC_P9, KC_PPLS, RGB_TOG,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_PDOT, KC_MUTE
)
};

#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif
1 change: 1 addition & 0 deletions keyboards/doio/kb19/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
34 changes: 34 additions & 0 deletions keyboards/doio/kb19/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Copyright 2022 DOIO
* Copyright 2022 DOIO2022 <https://github.com/DOIO2022>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@drashna HI,thank you for your help. I've changed it. That's right?

[0] = LAYOUT(
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, RGB_MOD,
KC_P7, KC_P8, KC_P9, KC_PPLS, RGB_TOG,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_PDOT, KC_MUTE
)
};

#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif
2 changes: 2 additions & 0 deletions keyboards/doio/kb19/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes
24 changes: 24 additions & 0 deletions keyboards/doio/kb19/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# doio/kb19

QMK for DOIO Knob keypad .

* Keyboard Maintainer: DOIO2022
* Hardware Supported: DOIO Knob keypad

Make example for this keyboard (after setting up your build environment):

make doio/kb19:default

Flashing example for this keyboard:

make doio/kb19:default:flash

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).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
1 change: 1 addition & 0 deletions keyboards/doio/kb19/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank