diff options
| -rw-r--r-- | keyboards/doio/kb19/info.json | 77 | ||||
| -rw-r--r-- | keyboards/doio/kb19/keymaps/default/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/doio/kb19/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/doio/kb19/keymaps/via/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/doio/kb19/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/doio/kb19/readme.md | 24 | ||||
| -rw-r--r-- | keyboards/doio/kb19/rules.mk | 1 |
7 files changed, 173 insertions, 0 deletions
diff --git a/keyboards/doio/kb19/info.json b/keyboards/doio/kb19/info.json new file mode 100644 index 0000000000..faaaedd36f --- /dev/null +++ b/keyboards/doio/kb19/info.json | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "KB19-01", | ||
| 3 | "manufacturer": "DOIO", | ||
| 4 | "url": "", | ||
| 5 | "maintainer": "DOIO2022", | ||
| 6 | "usb": { | ||
| 7 | "vid": "0xD010", | ||
| 8 | "pid": "0x1901", | ||
| 9 | "device_version": "0.0.1" | ||
| 10 | }, | ||
| 11 | "diode_direction": "COL2ROW", | ||
| 12 | "features": { | ||
| 13 | "bootmagic": true, | ||
| 14 | "mousekey": true, | ||
| 15 | "extrakey": true, | ||
| 16 | "console": false, | ||
| 17 | "command": false, | ||
| 18 | "encoder": true, | ||
| 19 | "nkro": false, | ||
| 20 | "rgblight": true | ||
| 21 | }, | ||
| 22 | "matrix_pins": { | ||
| 23 | "cols": ["B14", "B13", "B12", "B0", "A7"], | ||
| 24 | "rows": ["B3", "B4", "B9", "B8", "B1"] | ||
| 25 | }, | ||
| 26 | "ws2812": { | ||
| 27 | "pin": "A10" | ||
| 28 | }, | ||
| 29 | "encoder": { | ||
| 30 | "rotary": [ | ||
| 31 | {"pin_a": "B5", "pin_b": "B6"} | ||
| 32 | ] | ||
| 33 | }, | ||
| 34 | "rgblight": { | ||
| 35 | "led_count": 19, | ||
| 36 | "animations": { | ||
| 37 | "breathing": true, | ||
| 38 | "rainbow_mood": true, | ||
| 39 | "rainbow_swirl": true, | ||
| 40 | "snake": true, | ||
| 41 | "knight": true, | ||
| 42 | "christmas": true, | ||
| 43 | "static_gradient": true, | ||
| 44 | "rgb_test": true, | ||
| 45 | "alternating": true, | ||
| 46 | "twinkle": true | ||
| 47 | } | ||
| 48 | }, | ||
| 49 | "processor": "STM32F103", | ||
| 50 | "bootloader": "stm32duino", | ||
| 51 | "layouts": { | ||
| 52 | "LAYOUT": { | ||
| 53 | "layout": [ | ||
| 54 | {"matrix": [0, 0], "x": 0, "y": 0}, | ||
| 55 | {"matrix": [0, 1], "x": 1, "y": 0}, | ||
| 56 | {"matrix": [0, 2], "x": 2, "y": 0}, | ||
| 57 | {"matrix": [0, 3], "x": 3, "y": 0}, | ||
| 58 | {"matrix": [0, 4], "x": 5, "y": 0}, | ||
| 59 | {"matrix": [1, 0], "x": 0, "y": 1}, | ||
| 60 | {"matrix": [1, 1], "x": 1, "y": 1}, | ||
| 61 | {"matrix": [1, 2], "x": 2, "y": 1}, | ||
| 62 | {"matrix": [1, 3], "x": 3, "y": 1, "h": 2}, | ||
| 63 | {"matrix": [1, 4], "x": 5, "y": 1}, | ||
| 64 | {"matrix": [2, 0], "x": 0, "y": 2}, | ||
| 65 | {"matrix": [2, 1], "x": 1, "y": 2}, | ||
| 66 | {"matrix": [2, 2], "x": 2, "y": 2}, | ||
| 67 | {"matrix": [3, 0], "x": 0, "y": 3}, | ||
| 68 | {"matrix": [3, 1], "x": 1, "y": 3}, | ||
| 69 | {"matrix": [3, 2], "x": 2, "y": 3}, | ||
| 70 | {"matrix": [3, 3], "x": 3, "y": 3, "h": 2}, | ||
| 71 | {"matrix": [4, 0], "x": 0, "y": 4, "w": 2}, | ||
| 72 | {"matrix": [4, 2], "x": 2, "y": 4}, | ||
| 73 | {"matrix": [4, 3], "x": 5, "y": 4} | ||
| 74 | ] | ||
| 75 | } | ||
| 76 | } | ||
| 77 | } | ||
diff --git a/keyboards/doio/kb19/keymaps/default/keymap.c b/keyboards/doio/kb19/keymaps/default/keymap.c new file mode 100644 index 0000000000..ba44342b20 --- /dev/null +++ b/keyboards/doio/kb19/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT( | ||
| 22 | KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, RGB_MOD, | ||
| 23 | KC_P7, KC_P8, KC_P9, KC_PPLS, RGB_TOG, | ||
| 24 | KC_P4, KC_P5, KC_P6, | ||
| 25 | KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 26 | KC_P0, KC_PDOT, KC_MUTE | ||
| 27 | ) | ||
| 28 | }; | ||
| 29 | |||
| 30 | #ifdef ENCODER_MAP_ENABLE | ||
| 31 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
| 32 | [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
| 33 | }; | ||
| 34 | #endif | ||
diff --git a/keyboards/doio/kb19/keymaps/default/rules.mk b/keyboards/doio/kb19/keymaps/default/rules.mk new file mode 100644 index 0000000000..ee32568148 --- /dev/null +++ b/keyboards/doio/kb19/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| ENCODER_MAP_ENABLE = yes | |||
diff --git a/keyboards/doio/kb19/keymaps/via/keymap.c b/keyboards/doio/kb19/keymaps/via/keymap.c new file mode 100644 index 0000000000..ba44342b20 --- /dev/null +++ b/keyboards/doio/kb19/keymaps/via/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT( | ||
| 22 | KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, RGB_MOD, | ||
| 23 | KC_P7, KC_P8, KC_P9, KC_PPLS, RGB_TOG, | ||
| 24 | KC_P4, KC_P5, KC_P6, | ||
| 25 | KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 26 | KC_P0, KC_PDOT, KC_MUTE | ||
| 27 | ) | ||
| 28 | }; | ||
| 29 | |||
| 30 | #ifdef ENCODER_MAP_ENABLE | ||
| 31 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
| 32 | [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
| 33 | }; | ||
| 34 | #endif | ||
diff --git a/keyboards/doio/kb19/keymaps/via/rules.mk b/keyboards/doio/kb19/keymaps/via/rules.mk new file mode 100644 index 0000000000..f1adcab005 --- /dev/null +++ b/keyboards/doio/kb19/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | ENCODER_MAP_ENABLE = yes | ||
diff --git a/keyboards/doio/kb19/readme.md b/keyboards/doio/kb19/readme.md new file mode 100644 index 0000000000..ad9d0aaccd --- /dev/null +++ b/keyboards/doio/kb19/readme.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # doio/kb19 | ||
| 2 | |||
| 3 | QMK for DOIO Knob keypad . | ||
| 4 | |||
| 5 | * Keyboard Maintainer: DOIO2022 | ||
| 6 | * Hardware Supported: DOIO Knob keypad | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make doio/kb19:default | ||
| 11 | |||
| 12 | Flashing example for this keyboard: | ||
| 13 | |||
| 14 | make doio/kb19:default:flash | ||
| 15 | |||
| 16 | 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). | ||
| 17 | |||
| 18 | ## Bootloader | ||
| 19 | |||
| 20 | Enter the bootloader in 3 ways: | ||
| 21 | |||
| 22 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 23 | * **Physical reset button**: Briefly press the button on the back of the PCB | ||
| 24 | * **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available | ||
diff --git a/keyboards/doio/kb19/rules.mk b/keyboards/doio/kb19/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/doio/kb19/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # This file intentionally left blank | |||
