Keyboard/kb04 (#316)
* Add Doio kb04 keyboard. * Text. * Add in security settings for Vial.
This commit is contained in:
parent
98a2c7cfc8
commit
e552a8032b
101
keyboards/doio/kb04/config.h
Normal file
101
keyboards/doio/kb04/config.h
Normal file
@ -0,0 +1,101 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 8
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { B3 }
|
||||
#define MATRIX_COL_PINS { B14, B13, B12, B0, A7, A9, A8, A6 }
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Encoder pins */
|
||||
#define ENCODERS_PAD_A { B5 }
|
||||
#define ENCODERS_PAD_B { B6 }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
/* RGB Matrix config */
|
||||
#define RGB_DI_PIN A10
|
||||
#define DRIVER_LED_TOTAL 8
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||
#define RGB_MATRIX_STARTUP_SPD 30
|
||||
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
||||
/* 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_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#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_FLOW
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#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
|
||||
|
||||
#define RGB_MATRIX_SOLID_REACTIVE_GRADIENT_MODE
|
||||
#endif
|
||||
|
||||
|
22
keyboards/doio/kb04/info.json
Normal file
22
keyboards/doio/kb04/info.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"keyboard_name": "KB04-01",
|
||||
"manufacturer": "DOIO",
|
||||
"url": "https://www.keebmonkey.com/products/megalodon-macro-pad-with-a-knob",
|
||||
"maintainer": "filmstarr",
|
||||
"usb": {
|
||||
"vid": "0xD010",
|
||||
"pid": "0x0401",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "1!", "x": 0, "y": 0 },
|
||||
{ "label": "2@", "x": 1, "y": 0 },
|
||||
{ "label": "3#", "x": 2, "y": 0 },
|
||||
{ "label": "4$", "x": 3, "y": 0 },
|
||||
{ "label": "Encoder", "x": 4.75, "y": 0 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
27
keyboards/doio/kb04/kb04.c
Normal file
27
keyboards/doio/kb04/kb04.c
Normal file
@ -0,0 +1,27 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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 "kb04.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
led_config_t g_led_config = { {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7},
|
||||
}, {
|
||||
{0 , 0}, {75 , 0}, {149, 0}, {224, 0}, {112, 64}, {112, 64}, {112, 64}, {112, 64},
|
||||
}, {
|
||||
1, 1, 1, 1, 1, 1, 1, 1
|
||||
} };
|
||||
#endif
|
27
keyboards/doio/kb04/kb04.h
Normal file
27
keyboards/doio/kb04/kb04.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
/* 06 ◯ 05
|
||||
* ┌────┬────┬────┬────┐ ┌────┐
|
||||
* │ 00 │ 01 │ 02 │ 03 │ │ 04 │
|
||||
* └────┴────┴────┴────┘ └────┘
|
||||
*/
|
||||
|
||||
#define LAYOUT(K00, K01, K02, K03, K04) {{ K00, K01, K02, K03, K04 }}
|
48
keyboards/doio/kb04/keymaps/default/keymap.c
Normal file
48
keyboards/doio/kb04/keymaps/default/keymap.c
Normal file
@ -0,0 +1,48 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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 {
|
||||
_LAY0,
|
||||
_LAY1
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
L0:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│MO1│Prv│Ply│Nxt│ │Mut│
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
L1:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│ │Hud│Tog│Mod│ │ │
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
*/
|
||||
[_LAY0] = LAYOUT(
|
||||
MO(_LAY1), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE
|
||||
),
|
||||
[_LAY1] = LAYOUT(
|
||||
KC_TRNS, RGB_HUD, RGB_TOG, RGB_MOD, KC_TRNS
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[_LAY0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }
|
||||
};
|
||||
#endif
|
2
keyboards/doio/kb04/keymaps/default/rules.mk
Normal file
2
keyboards/doio/kb04/keymaps/default/rules.mk
Normal file
@ -0,0 +1,2 @@
|
||||
# Encoder enabled
|
||||
ENCODER_MAP_ENABLE = yes
|
58
keyboards/doio/kb04/keymaps/via/keymap.c
Normal file
58
keyboards/doio/kb04/keymaps/via/keymap.c
Normal file
@ -0,0 +1,58 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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 {
|
||||
_LAY0,
|
||||
_LAY1,
|
||||
_LAY2,
|
||||
_LAY3
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
L0:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│MO1│Prv│Ply│Nxt│ │Mut│
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
L1:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│ │Hud│Tog│Mod│ │ │
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
*/
|
||||
[_LAY0] = LAYOUT(
|
||||
MO(_LAY1), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE
|
||||
),
|
||||
[_LAY1] = LAYOUT(
|
||||
KC_TRNS, RGB_HUD, RGB_TOG, RGB_MOD, KC_TRNS
|
||||
),
|
||||
[_LAY2] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_LAY3] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
||||
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[_LAY0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
};
|
||||
#endif
|
4
keyboards/doio/kb04/keymaps/via/rules.mk
Normal file
4
keyboards/doio/kb04/keymaps/via/rules.mk
Normal file
@ -0,0 +1,4 @@
|
||||
VIA_ENABLE = yes
|
||||
|
||||
# Encoder enabled
|
||||
ENCODER_MAP_ENABLE = yes
|
22
keyboards/doio/kb04/keymaps/vial-inverted/config.h
Normal file
22
keyboards/doio/kb04/keymaps/vial-inverted/config.h
Normal file
@ -0,0 +1,22 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x11, 0x10, 0xF5, 0xD0, 0x98, 0x20, 0xE9, 0xF6}
|
||||
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
|
58
keyboards/doio/kb04/keymaps/vial-inverted/keymap.c
Normal file
58
keyboards/doio/kb04/keymaps/vial-inverted/keymap.c
Normal file
@ -0,0 +1,58 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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 {
|
||||
_LAY0,
|
||||
_LAY1,
|
||||
_LAY2,
|
||||
_LAY3
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
L0:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│Nxt│Ply│Prv│MO1│ │Mut│
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
L1:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│Hud│Tog│Mod│ │ │ │
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
*/
|
||||
[_LAY0] = LAYOUT(
|
||||
KC_MNXT, KC_MPLY, KC_MPRV, MO(_LAY1), KC_MUTE
|
||||
),
|
||||
[_LAY1] = LAYOUT(
|
||||
RGB_MOD, RGB_TOG, RGB_HUD, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_LAY2] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_LAY3] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
||||
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[_LAY0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
};
|
||||
#endif
|
5
keyboards/doio/kb04/keymaps/vial-inverted/rules.mk
Normal file
5
keyboards/doio/kb04/keymaps/vial-inverted/rules.mk
Normal file
@ -0,0 +1,5 @@
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
|
||||
# Encoder enabled
|
||||
ENCODER_MAP_ENABLE = yes
|
13
keyboards/doio/kb04/keymaps/vial-inverted/vial.json
Normal file
13
keyboards/doio/kb04/keymaps/vial-inverted/vial.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "KB04-01",
|
||||
"vendorId": "0xD010",
|
||||
"productId": "0x0401",
|
||||
"lighting": "qmk_rgblight",
|
||||
"matrix": { "rows": 1, "cols": 8 },
|
||||
"layouts": {
|
||||
"keymap":[
|
||||
[ { "x": 0.5 }, "0,0\n\n\n\n\n\n\n\n\ne", "0,4" , "0,1\n\n\n\n\n\n\n\n\ne" ],
|
||||
[ { "y": 0.25 }, "0,3", "0,2", "0,1", "0,0" ]
|
||||
]
|
||||
}
|
||||
}
|
22
keyboards/doio/kb04/keymaps/vial/config.h
Normal file
22
keyboards/doio/kb04/keymaps/vial/config.h
Normal file
@ -0,0 +1,22 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x11, 0x10, 0xF5, 0xD0, 0x98, 0x20, 0xE9, 0xF6}
|
||||
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
|
58
keyboards/doio/kb04/keymaps/vial/keymap.c
Normal file
58
keyboards/doio/kb04/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,58 @@
|
||||
/* Copyright 2022 filmstarr <https://github.com/filmstarr>
|
||||
*
|
||||
* 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 {
|
||||
_LAY0,
|
||||
_LAY1,
|
||||
_LAY2,
|
||||
_LAY3
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
L0:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│MO1│Prv│Ply│Nxt│ │Mut│
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
L1:
|
||||
┌───┬───┬───┬───┐ ┌───┐
|
||||
│ │Hud│Tog│Mod│ │ │
|
||||
└───┴───┴───┴───┘ └───┘
|
||||
*/
|
||||
[_LAY0] = LAYOUT(
|
||||
MO(_LAY1), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE
|
||||
),
|
||||
[_LAY1] = LAYOUT(
|
||||
KC_TRNS, RGB_HUD, RGB_TOG, RGB_MOD, KC_TRNS
|
||||
),
|
||||
[_LAY2] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_LAY3] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
||||
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[_LAY0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
[_LAY3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
};
|
||||
#endif
|
5
keyboards/doio/kb04/keymaps/vial/rules.mk
Normal file
5
keyboards/doio/kb04/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,5 @@
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
|
||||
# Encoder enabled
|
||||
ENCODER_MAP_ENABLE = yes
|
13
keyboards/doio/kb04/keymaps/vial/vial.json
Normal file
13
keyboards/doio/kb04/keymaps/vial/vial.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "KB04-01",
|
||||
"vendorId": "0xD010",
|
||||
"productId": "0x0401",
|
||||
"lighting": "qmk_rgblight",
|
||||
"matrix": { "rows": 1, "cols": 8 },
|
||||
"layouts": {
|
||||
"keymap":[
|
||||
[ "0,0", "0,1", "0,2", "0,3" ],
|
||||
[ { "y": 0.25, "x": 0.5 }, "0,0\n\n\n\n\n\n\n\n\ne", "0,4" , "0,1\n\n\n\n\n\n\n\n\ne" ]
|
||||
]
|
||||
}
|
||||
}
|
29
keyboards/doio/kb04/readme.md
Normal file
29
keyboards/doio/kb04/readme.md
Normal file
@ -0,0 +1,29 @@
|
||||
# doio/kb04
|
||||
|
||||
![doio/kb04](https://cdn.shopify.com/s/files/1/0463/5980/6101/products/4_f40396cc-ea72-47a5-887f-bbeeb4023b11_1100x.png?v=1654787686)
|
||||
|
||||
A macropad that have 4-key keyboard made by DOIO, which controlled by an APM32F103CBT6 chipset. The keyboard features per-key RGB and 1 encoder.
|
||||
|
||||
There are four keymaps: default, via, vial, and vial-inverted. vial-inverted is intended for use when the keyboard is plugged in upside down (with the encoder at the top).
|
||||
|
||||
* Keyboard Maintainer: [filmstarr](https://github.com/filmstarr)
|
||||
* Hardware Supported: DOIO Knob Board - KB04
|
||||
* Hardware Availability: [keebmonkey.com](https://www.keebmonkey.com/products/megalodon-macro-pad-with-a-knob)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make doio/kb04:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make doio/kb04: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 (1! key) 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
|
35
keyboards/doio/kb04/rules.mk
Normal file
35
keyboards/doio/kb04/rules.mk
Normal file
@ -0,0 +1,35 @@
|
||||
# MCU name
|
||||
MCU = STM32F103
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = stm32duino
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
# Additional thing to reduce compiled size
|
||||
LTO_ENABLE = yes
|
||||
|
||||
# RGB Matrix enabled
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
|
||||
# Encoder enabled
|
||||
ENCODER_ENABLE = yes
|
||||
|
||||
# Wear-levelling driver
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
Loading…
Reference in New Issue
Block a user