diff options
author | QMK Bot <hello@qmk.fm> | 2021-11-12 16:39:41 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-11-12 16:39:41 +0000 |
commit | 233fd7a19c534a2241c30871328fe41b014fcac5 (patch) | |
tree | 0557f5d33969bb810eeee686d19f8645353876c0 | |
parent | 3a4130866119a9ad699c0ada041ce57fc2974709 (diff) | |
parent | 463cb40e16006acd31ddbb6210d2939dfb5838f2 (diff) | |
download | qmk_firmware-233fd7a19c534a2241c30871328fe41b014fcac5.tar.gz qmk_firmware-233fd7a19c534a2241c30871328fe41b014fcac5.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | keyboards/jadookb/jkb2/config.h | 32 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/info.json | 10 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/jkb2.c | 16 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/jkb2.h | 25 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/keymaps/default/keymap.c | 23 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/keymaps/via/config.h | 20 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/keymaps/via/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/readme.md | 23 | ||||
-rw-r--r-- | keyboards/jadookb/jkb2/rules.mk | 21 |
10 files changed, 206 insertions, 0 deletions
diff --git a/keyboards/jadookb/jkb2/config.h b/keyboards/jadookb/jkb2/config.h new file mode 100644 index 000000000..ac5808f23 --- /dev/null +++ b/keyboards/jadookb/jkb2/config.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* Copyright 2021 Wizard-GG | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | #include "config_common.h" | ||
18 | |||
19 | #define VENDOR_ID 0x4A4B // "JK" | ||
20 | #define PRODUCT_ID 0x3225 // "2%" | ||
21 | #define DEVICE_VER 0x0001 | ||
22 | #define MANUFACTURER JadooKB | ||
23 | #define PRODUCT JKB2 | ||
24 | |||
25 | #define MATRIX_ROWS 1 | ||
26 | #define MATRIX_COLS 2 | ||
27 | |||
28 | #define MATRIX_ROW_PINS { B1 } | ||
29 | #define MATRIX_COL_PINS { B3 ,B2} | ||
30 | #define UNUSED_PINS | ||
31 | |||
32 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/jadookb/jkb2/info.json b/keyboards/jadookb/jkb2/info.json new file mode 100644 index 000000000..ed818d641 --- /dev/null +++ b/keyboards/jadookb/jkb2/info.json | |||
@@ -0,0 +1,10 @@ | |||
1 | { | ||
2 | "keyboard_name": "jkb2", | ||
3 | "url": "https://jadookb.com/", | ||
4 | "maintainer": "Wizard-GG", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ {"label":"z","x": 0, "y": 0 }, {"label":"x","x": 1, "y": 0 }] | ||
8 | } | ||
9 | } | ||
10 | } | ||
diff --git a/keyboards/jadookb/jkb2/jkb2.c b/keyboards/jadookb/jkb2/jkb2.c new file mode 100644 index 000000000..3ac90e97e --- /dev/null +++ b/keyboards/jadookb/jkb2/jkb2.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2021 Wizard-GG | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include "jkb2.h" | ||
diff --git a/keyboards/jadookb/jkb2/jkb2.h b/keyboards/jadookb/jkb2/jkb2.h new file mode 100644 index 000000000..1bddef45d --- /dev/null +++ b/keyboards/jadookb/jkb2/jkb2.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2021 Wizard-GG | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | |||
18 | #include "quantum.h" | ||
19 | |||
20 | #define LAYOUT( \ | ||
21 | K01, K02 \ | ||
22 | ) \ | ||
23 | { \ | ||
24 | { K01, K02 }, \ | ||
25 | } | ||
diff --git a/keyboards/jadookb/jkb2/keymaps/default/keymap.c b/keyboards/jadookb/jkb2/keymaps/default/keymap.c new file mode 100644 index 000000000..f2470c083 --- /dev/null +++ b/keyboards/jadookb/jkb2/keymaps/default/keymap.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2021 Wizard-GG | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT( | ||
21 | KC_Z, KC_X | ||
22 | ) | ||
23 | }; | ||
diff --git a/keyboards/jadookb/jkb2/keymaps/via/config.h b/keyboards/jadookb/jkb2/keymaps/via/config.h new file mode 100644 index 000000000..ecd00aced --- /dev/null +++ b/keyboards/jadookb/jkb2/keymaps/via/config.h | |||
@@ -0,0 +1,20 @@ | |||
1 | |||
2 | /* Copyright 2021 Wizard-GG | ||
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 | #pragma once | ||
18 | |||
19 | #define USB_POLLING_INTERVAL_MS 1 | ||
20 | #define QMK_KEYS_PER_SCAN 4 | ||
diff --git a/keyboards/jadookb/jkb2/keymaps/via/keymap.c b/keyboards/jadookb/jkb2/keymaps/via/keymap.c new file mode 100644 index 000000000..fc10bc32b --- /dev/null +++ b/keyboards/jadookb/jkb2/keymaps/via/keymap.c | |||
@@ -0,0 +1,34 @@ | |||
1 | |||
2 | /* Copyright 2021 Wizard-GG | ||
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 | |||
22 | [0] = LAYOUT( | ||
23 | KC_Z, KC_X | ||
24 | ), | ||
25 | [1] = LAYOUT( | ||
26 | _______, _______ | ||
27 | ), | ||
28 | [2] = LAYOUT( | ||
29 | _______, _______ | ||
30 | ), | ||
31 | [3] = LAYOUT( | ||
32 | _______, _______ | ||
33 | ) | ||
34 | }; | ||
diff --git a/keyboards/jadookb/jkb2/keymaps/via/rules.mk b/keyboards/jadookb/jkb2/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/jadookb/jkb2/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/jadookb/jkb2/readme.md b/keyboards/jadookb/jkb2/readme.md new file mode 100644 index 000000000..09f01a6cd --- /dev/null +++ b/keyboards/jadookb/jkb2/readme.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # JKB2 osu! Macropad | ||
2 | |||
3 |  | ||
4 | |||
5 | A 2% hotswap osu! Macropad from JadooKB. | ||
6 | |||
7 | * Keyboard Maintainer: [Wizard-GG](https://github.com/wizard-gg) | ||
8 | * Hardware Supported: JKB2 OSU | ||
9 | * Hardware Availability: [Jadoo Keyboard](https://jadookb.com/jkb2) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make jadookb/jkb2:default | ||
14 | |||
15 | Flashing example for this keyboard: | ||
16 | |||
17 | make jadookb/jkb2:default:flash | ||
18 | |||
19 | To reset the board into bootloader mode, do the following step: | ||
20 | |||
21 | * Hold the **left** key while connecting the USB cable | ||
22 | |||
23 | 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). | ||
diff --git a/keyboards/jadookb/jkb2/rules.mk b/keyboards/jadookb/jkb2/rules.mk new file mode 100644 index 000000000..10e9616d6 --- /dev/null +++ b/keyboards/jadookb/jkb2/rules.mk | |||
@@ -0,0 +1,21 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output | ||