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
Changes from 1 commit
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
Next Next commit
Add files via upload
  • Loading branch information
DOIO2022 committed Dec 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit dae2cb3b55a200c70ce24e372893a4f8ba83a9c2
73 changes: 73 additions & 0 deletions keyboards/doio/kb3x/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* 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/>.
*/

#pragma once

/* Ecoder */
#define ENCODER_DEFAULT_POS 0X03
#define ENCODER_DIRECTION_FLIP

/* RGB Matrix config */
#define RGB_MATRIX_LED_COUNT 6
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_UP_DOWN
#define RGB_DISABLE_WHEN_USB_SUSPENDED
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS

/* RGB Matrix effect */
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#define ENABLE_RGB_MATRIX_DUAL_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#define ENABLE_RGB_MATRIX_RAINDROPS
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#define ENABLE_RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#define ENABLE_RGB_MATRIX_SPLASH
#define ENABLE_RGB_MATRIX_MULTISPLASH
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
84 changes: 84 additions & 0 deletions keyboards/doio/kb3x/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"keyboard_name": "KB3X-01",
"manufacturer": "DOIO",
"url": "",
"maintainer": "DOIO2022",
"usb": {
"vid": "0xD010",
"pid": "0x3F01",
"device_version": "0.0.1"
},
"rgb_matrix": {
"driver": "ws2812"
"layout": [
{"matrix": [3, 0], "x": 0, "y": 64, "flags": 4},
{"matrix": [3, 1], "x": 45, "y": 64, "flags": 4},
{"matrix": [3, 2], "x": 90, "y": 64, "flags": 4},
{"matrix": [3, 3], "x": 135, "y": 64, "flags": 4},
{"matrix": [3, 4], "x": 180, "y": 64, "flags": 4},
{"matrix": [3, 5], "x": 224, "y": 64, "flags": 4}
],
"max_brightness": 200
},
"matrix_pins": {
"cols": ["B14", "B13", "B12", "B0", "A7", "A6"],
"rows": ["B3", "B4", "B9", "B8"]
},
"diode_direction": "COL2ROW",
"dynamic_keymap": {
"layer_count": 6
},
"encoder": {
"rotary": [
{"pin_a": "B5", "pin_b": "B6", "resolution": 2},
{"pin_a": "A1", "pin_b": "A2", "resolution": 2},
{"pin_a": "A3", "pin_b": "A4", "resolution": 2}
]
},
"ws2812": {
"pin": "A10"
},
"processor": "STM32F103",
"bootloader": "stm32duino",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true,
"encoder": true
},
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [3, 0], "x": 0, "y": 0 },
{ "matrix": [3, 1], "x": 1, "y": 0 },
{ "matrix": [3, 2], "x": 2, "y": 0 },
{ "matrix": [3, 3], "x": 7, "y": 0 },
{ "matrix": [3, 4], "x": 8, "y": 0 },
{ "matrix": [3, 5], "x": 9, "y": 0 },

{ "matrix": [0, 0], "x": 1, "y": 2 },
{ "matrix": [0, 1], "x": 2, "y": 3 },
{ "matrix": [0, 2], "x": 1, "y": 4 },
{ "matrix": [0, 3], "x": 0, "y": 3 },
{ "matrix": [0, 4], "x": 1, "y": 3 },

{ "matrix": [1, 0], "x": 6, "y": 2 },
{ "matrix": [1, 1], "x": 7, "y": 3 },
{ "matrix": [1, 2], "x": 6, "y": 4 },
{ "matrix": [1, 3], "x": 5, "y": 3 },
{ "matrix": [1, 4], "x": 6, "y": 3 },

{ "matrix": [2, 0], "x": 11, "y": 2 },
{ "matrix": [2, 1], "x": 12, "y": 3 },
{ "matrix": [2, 2], "x": 11, "y": 4 },
{ "matrix": [2, 3], "x": 10, "y": 3 },
{ "matrix": [2, 4], "x": 11, "y": 3 }

]
}
}
}
77 changes: 77 additions & 0 deletions keyboards/doio/kb3x/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* 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


enum layer_names {
_BASE,
_FN,
_FN1,
_FN2,
_FN3,
_FN4
};


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[_BASE] = LAYOUT(
TO(1), RGB_MOD, RGB_TOG, RGB_HUI, RGB_VAD, RGB_VAI,
KC_MPLY, KC_UP, KC_UP,
KC_MNXT, KC_TRNS, KC_MPRV, A(KC_LEFT), KC_TRNS, A(KC_RIGHT), KC_RIGHT, KC_TRNS, KC_LEFT,
KC_MPLY, KC_DOWN, KC_DOWN),
[_FN] = LAYOUT(
TO(2), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_WH_U, S(KC_RBRC), C(KC_L),
C(KC_WH_D), KC_TRNS, C(KC_WH_U), KC_DOT, KC_TRNS, KC_COMM, C(KC_B), KC_TRNS, C(KC_U),
KC_WH_D, S(KC_LBRC), C(KC_M)),
[_FN1] = LAYOUT(
TO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_B, KC_UP, S(KC_I),
KC_P, KC_TRNS, KC_H, KC_RIGHT, KC_TRNS, KC_LEFT, KC_O, KC_TRNS, KC_I,
KC_Y, KC_DOWN, S(KC_O)),
[_FN2] = LAYOUT(
TO(4), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[_FN3] = LAYOUT(
TO(5), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[_FN4] = LAYOUT(
TO(0), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),

};


#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[_BASE] = { ENCODER_CCW_CW(C(KC_DOWN), C(KC_UP)), ENCODER_CCW_CW(C(KC_PMNS), C(KC_PPLS)), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_FN] = { ENCODER_CCW_CW(C(KC_PMNS), C(KC_PPLS)), ENCODER_CCW_CW(KC_LBRC, KC_RBRC), ENCODER_CCW_CW(C(S(KC_U)), C(KC_I)) },
[_FN1] = { ENCODER_CCW_CW(KC_C, KC_V), ENCODER_CCW_CW(KC_MINS, KC_EQL), ENCODER_CCW_CW(KC_J, KC_L) },
[_FN2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
[_FN3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
[_FN4] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
};
#endif
77 changes: 77 additions & 0 deletions keyboards/doio/kb3x/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* 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


enum layer_names {
_BASE,
_FN,
_FN1,
_FN2,
_FN3,
_FN4
};


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[_BASE] = LAYOUT(
TO(1), RGB_MOD, RGB_TOG, RGB_HUI, RGB_VAD, RGB_VAI,
KC_MPLY, KC_UP, KC_UP,
KC_MNXT, KC_TRNS, KC_MPRV, A(KC_LEFT), KC_TRNS, A(KC_RIGHT), KC_RIGHT, KC_TRNS, KC_LEFT,
KC_MPLY, KC_DOWN, KC_DOWN),
[_FN] = LAYOUT(
TO(2), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_WH_U, S(KC_RBRC), C(KC_L),
C(KC_WH_D), KC_TRNS, C(KC_WH_U), KC_DOT, KC_TRNS, KC_COMM, C(KC_B), KC_TRNS, C(KC_U),
KC_WH_D, S(KC_LBRC), C(KC_M)),
[_FN1] = LAYOUT(
TO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_B, KC_UP, S(KC_I),
KC_P, KC_TRNS, KC_H, KC_RIGHT, KC_TRNS, KC_LEFT, KC_O, KC_TRNS, KC_I,
KC_Y, KC_DOWN, S(KC_O)),
[_FN2] = LAYOUT(
TO(4), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[_FN3] = LAYOUT(
TO(5), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[_FN4] = LAYOUT(
TO(0), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),

};


#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[_BASE] = { ENCODER_CCW_CW(C(KC_DOWN), C(KC_UP)), ENCODER_CCW_CW(C(KC_PMNS), C(KC_PPLS)), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_FN] = { ENCODER_CCW_CW(C(KC_PMNS), C(KC_PPLS)), ENCODER_CCW_CW(KC_LBRC, KC_RBRC), ENCODER_CCW_CW(C(S(KC_U)), C(KC_I)) },
[_FN1] = { ENCODER_CCW_CW(KC_C, KC_V), ENCODER_CCW_CW(KC_MINS, KC_EQL), ENCODER_CCW_CW(KC_J, KC_L) },
[_FN2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
[_FN3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
[_FN4] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
};
#endif
2 changes: 2 additions & 0 deletions keyboards/doio/kb3x/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/kb3x/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# doio/kb3x

QMK for DOIO Three Knobs .

* Keyboard Maintainer: DOIO2022
* Hardware Supported: DOIO Three Knobs

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

make doio/kb3x:default

Flashing example for this keyboard:

make doio/kb3x: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 front 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/kb3x/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank