aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kabedon
diff options
context:
space:
mode:
authorKDon <370490639@qq.com>2021-07-07 05:47:24 +0800
committerGitHub <noreply@github.com>2021-07-06 14:47:24 -0700
commitc9c2916829eccab2222dad99c7f599988789ec2f (patch)
tree79de7aa43d57f4bde5c4a468bc4777c41f2f3229 /keyboards/kabedon
parent792c4e7893af4a2561794b6f067327d33f39847c (diff)
downloadqmk_firmware-c9c2916829eccab2222dad99c7f599988789ec2f.tar.gz
qmk_firmware-c9c2916829eccab2222dad99c7f599988789ec2f.zip
[Keyboard] Add kabedon98e (#13314)
Diffstat (limited to 'keyboards/kabedon')
-rw-r--r--keyboards/kabedon/kabedon98e/chconf.h28
-rw-r--r--keyboards/kabedon/kabedon98e/config.h64
-rw-r--r--keyboards/kabedon/kabedon98e/halconf.h26
-rw-r--r--keyboards/kabedon/kabedon98e/info.json114
-rw-r--r--keyboards/kabedon/kabedon98e/kabedon98e.c16
-rw-r--r--keyboards/kabedon/kabedon98e/kabedon98e.h42
-rw-r--r--keyboards/kabedon/kabedon98e/keymaps/default/keymap.c108
-rw-r--r--keyboards/kabedon/kabedon98e/keymaps/via/keymap.c108
-rw-r--r--keyboards/kabedon/kabedon98e/keymaps/via/rules.mk1
-rw-r--r--keyboards/kabedon/kabedon98e/mcuconf.h27
-rw-r--r--keyboards/kabedon/kabedon98e/readme.md17
-rw-r--r--keyboards/kabedon/kabedon98e/rules.mk24
12 files changed, 575 insertions, 0 deletions
diff --git a/keyboards/kabedon/kabedon98e/chconf.h b/keyboards/kabedon/kabedon98e/chconf.h
new file mode 100644
index 000000000..f07706dfd
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/chconf.h
@@ -0,0 +1,28 @@
1/* Copyright 2020 QMK
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/*
18 * This file was auto-generated by:
19 * `qmk chibios-confmigrate -i keyboards/keyboards/kabedon/kabedon98e/chconf.h -r platforms/chibios/common/configs/chconf.h`
20 */
21
22#pragma once
23
24#define CH_CFG_ST_TIMEDELTA 0
25
26#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
27
28#include_next <chconf.h>
diff --git a/keyboards/kabedon/kabedon98e/config.h b/keyboards/kabedon/kabedon98e/config.h
new file mode 100644
index 000000000..a34e99bcc
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/config.h
@@ -0,0 +1,64 @@
1/* Copyright 2021 KDon<370490639@qq.com>
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 "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x4B44
22#define PRODUCT_ID 0x3935
23#define DEVICE_VER 0x0002
24#define MANUFACTURER Kabe_Don
25#define PRODUCT 98e
26
27/* key matrix size */
28#define MATRIX_ROWS 12
29#define MATRIX_COLS 11
30
31#define MATRIX_ROW_PINS {A4,B10,B2,B1,B0,B15,B13,B14,B12,A10,A9,A8}
32#define MATRIX_COL_PINS {A0,B7,B8,B6,A3,A2,A1,B9,A7,A5,A6}
33#define DIODE_DIRECTION ROW2COL
34
35/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
36#define DEBOUNCE 5
37
38#define FORCE_NKRO
39
40#define RGB_DI_PIN B4
41#define RGBLED_NUM 24
42#define RGBLIGHT_ANIMATIONS
43
44#define WS2812_PWM_DRIVER PWMD3
45#define WS2812_PWM_CHANNEL 1
46#define WS2812_DMA_STREAM STM32_DMA1_STREAM3
47#define WS2812_DMA_CHANNEL 3
48
49/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
50#define LOCKING_SUPPORT_ENABLE
51/* Locking resynchronize hack */
52#define LOCKING_RESYNC_ENABLE
53
54#define ENCODERS 2
55#define ENCODERS_PAD_A { B3,A14 }
56#define ENCODERS_PAD_B { B5,A15 }
57
58#define ENCODERS_CW_KEY { { 0, 0 },{ 2, 0 } }
59#define ENCODERS_CCW_KEY { { 6, 0 },{ 8, 0 } }
60
61#define DYNAMIC_KEYMAP_LAYER_COUNT 3
62/* Bootmagic Lite key configuration */
63#define BOOTMAGIC_LITE_ROW 0
64#define BOOTMAGIC_LITE_COLUMN 1
diff --git a/keyboards/kabedon/kabedon98e/halconf.h b/keyboards/kabedon/kabedon98e/halconf.h
new file mode 100644
index 000000000..d141a65a0
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/halconf.h
@@ -0,0 +1,26 @@
1/* Copyright 2020 QMK
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/*
18 * This file was auto-generated by:
19 * `qmk chibios-confmigrate -i keyboards/keyboards/kabedon/kabedon98e/halconf.h -r platforms/chibios/common/configs/halconf.h`
20 */
21
22#pragma once
23
24#define HAL_USE_PWM TRUE
25
26#include_next <halconf.h>
diff --git a/keyboards/kabedon/kabedon98e/info.json b/keyboards/kabedon/kabedon98e/info.json
new file mode 100644
index 000000000..0774a02b6
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/info.json
@@ -0,0 +1,114 @@
1{
2 "keyboard_name": "KabeDon98E",
3 "url": "",
4 "maintainer": "370490639",
5 "width": 20.8,
6 "height": 6.7,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"F1", "x":1.5, "y":0},
12 {"label":"F2", "x":2.5, "y":0},
13 {"label":"F3", "x":3.5, "y":0},
14 {"label":"F4", "x":4.5, "y":0},
15 {"label":"F5", "x":6.25, "y":0},
16 {"label":"F6", "x":7.25, "y":0},
17 {"label":"F7", "x":8.25, "y":0},
18 {"label":"F8", "x":9.25, "y":0},
19 {"label":"F9", "x":11, "y":0},
20 {"label":"F10", "x":12, "y":0},
21 {"label":"F11", "x":13, "y":0},
22 {"label":"F12", "x":14, "y":0},
23 {"label":"Delete", "x":15.5, "y":0},
24 {"label":"Insert", "x":17, "y":0},
25 {"label":"Mute", "x":18.5, "y":0},
26 {"label":"~", "x":0, "y":1.5},
27 {"label":"!", "x":1, "y":1.5},
28 {"label":"@", "x":2, "y":1.5},
29 {"label":"#", "x":3, "y":1.5},
30 {"label":"$", "x":4, "y":1.5},
31 {"label":"%", "x":5, "y":1.5},
32 {"label":"^", "x":6, "y":1.5},
33 {"label":"&", "x":7, "y":1.5},
34 {"label":"*", "x":8, "y":1.5},
35 {"label":"(", "x":9, "y":1.5},
36 {"label":")", "x":10, "y":1.5},
37 {"label":"_", "x":11, "y":1.5},
38 {"label":"+", "x":12, "y":1.5},
39 {"label":"Backspace", "x":13, "y":1.5, "w":2},
40 {"label":"Num Lock", "x":15.4, "y":1.5},
41 {"label":"/", "x":16.4, "y":1.5},
42 {"label":"*", "x":17.4, "y":1.5},
43 {"label":"-", "x":18.4, "y":1.5},
44 {"label":"Home", "x":19.8, "y":1.5},
45 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
46 {"label":"Q", "x":1.5, "y":2.5},
47 {"label":"W", "x":2.5, "y":2.5},
48 {"label":"E", "x":3.5, "y":2.5},
49 {"label":"R", "x":4.5, "y":2.5},
50 {"label":"T", "x":5.5, "y":2.5},
51 {"label":"Y", "x":6.5, "y":2.5},
52 {"label":"U", "x":7.5, "y":2.5},
53 {"label":"I", "x":8.5, "y":2.5},
54 {"label":"O", "x":9.5, "y":2.5},
55 {"label":"P", "x":10.5, "y":2.5},
56 {"label":"{", "x":11.5, "y":2.5},
57 {"label":"}", "x":12.5, "y":2.5},
58 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
59 {"label":"7", "x":15.4, "y":2.5},
60 {"label":"8", "x":16.4, "y":2.5},
61 {"label":"9", "x":17.4, "y":2.5},
62 {"label":"+", "x":18.4, "y":2.5, "h":2},
63 {"label":"End", "x":19.8, "y":2.5},
64 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
65 {"label":"A", "x":1.75, "y":3.5},
66 {"label":"S", "x":2.75, "y":3.5},
67 {"label":"D", "x":3.75, "y":3.5},
68 {"label":"F", "x":4.75, "y":3.5},
69 {"label":"G", "x":5.75, "y":3.5},
70 {"label":"H", "x":6.75, "y":3.5},
71 {"label":"J", "x":7.75, "y":3.5},
72 {"label":"K", "x":8.75, "y":3.5},
73 {"label":"L", "x":9.75, "y":3.5},
74 {"label":":", "x":10.75, "y":3.5},
75 {"label":"\"", "x":11.75, "y":3.5},
76 {"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
77 {"label":"4", "x":15.4, "y":3.5},
78 {"label":"5", "x":16.4, "y":3.5},
79 {"label":"6", "x":17.4, "y":3.5},
80 {"label":"Shift", "x":0, "y":4.5, "w":2.25},
81 {"label":"Z", "x":2.25, "y":4.5},
82 {"label":"X", "x":3.25, "y":4.5},
83 {"label":"C", "x":4.25, "y":4.5},
84 {"label":"V", "x":5.25, "y":4.5},
85 {"label":"B", "x":6.25, "y":4.5},
86 {"label":"N", "x":7.25, "y":4.5},
87 {"label":"M", "x":8.25, "y":4.5},
88 {"label":"<", "x":9.25, "y":4.5},
89 {"label":">", "x":10.25, "y":4.5},
90 {"label":"?", "x":11.25, "y":4.5},
91 {"label":"Shift", "x":12.25, "y":4.5, "w":1.75},
92 {"label":"Up", "x":14.2, "y":4.7},
93 {"label":"1", "x":15.4, "y":4.5},
94 {"label":"2", "x":16.4, "y":4.5},
95 {"label":"3", "x":17.4, "y":4.5},
96 {"label":"Enter", "x":18.4, "y":4.5, "h":2},
97 {"label":"Pgup", "x":19.8, "y":4.5},
98 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
99 {"label":"Win", "x":1.25, "y":5.5},
100 {"label":"Alt", "x":2.25, "y":5.5},
101 {"label":"MO(1)", "x":3.25, "y":5.5},
102 {"label":"Space", "x":4.25, "y":5.5, "w":6.25},
103 {"label":"Alt", "x":10.5, "y":5.5, "w":1.25},
104 {"label":"Ctrl", "x":11.75, "y":5.5, "w":1.25},
105 {"label":"Left", "x":13.2, "y":5.7},
106 {"label":"Down", "x":14.2, "y":5.7},
107 {"label":"Right", "x":15.2, "y":5.7},
108 {"label":"0", "x":16.4, "y":5.5},
109 {"label":".", "x":17.4, "y":5.5},
110 {"label":"Pgdn", "x":19.8, "y":5.5}
111 ]
112 }
113 }
114}
diff --git a/keyboards/kabedon/kabedon98e/kabedon98e.c b/keyboards/kabedon/kabedon98e/kabedon98e.c
new file mode 100644
index 000000000..5142c5887
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/kabedon98e.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 KDon<370490639@qq.com>
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 "kabedon98e.h"
diff --git a/keyboards/kabedon/kabedon98e/kabedon98e.h b/keyboards/kabedon/kabedon98e/kabedon98e.h
new file mode 100644
index 000000000..0ddad3abf
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/kabedon98e.h
@@ -0,0 +1,42 @@
1/* Copyright 2021 KDon<370490639@qq.com>
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 XXXX KC_NO
21
22#define LAYOUT( \
23 KB00, KA01, KB01, KA02, KB02, KA03, KB03, KA04, KB04, KA05, KB05, KB06, KB07, KF07, KE08, KE00, \
24 KD00, KC01, KD01, KC02, KD02, KC03, KD03, KC04, KD04, KC05, KD05, KC06, KD06, KD07, KD09, KE09, KE10, KF10, KA00, \
25 KF00, KE01, KF01, KE02, KF02, KE03, KF03, KE04, KF04, KE05, KF05, KE06, KF06, KE07, KF09, KG09, KG10, KC00, \
26 KH00, KG01, KH01, KG02, KH02, KG03, KH03, KG04, KH04, KG05, KH05, KG06, KH07, KH09, KI09, KI10, KH10, \
27 KJ00, KJ01, KI02, KJ02, KI03, KJ03, KI04, KJ04, KI05, KJ05, KI06, KJ07, KI08, KJ09, KK09, KJ10, KG00, \
28 KL00, KK01, KL01, KL03, KL02, KL05, KK07, KL07, KK08, KL08, KL09, KK10, KL10, KI00 \
29) { \
30 { KA00, KA01, KA02, KA03, KA04, KA05, XXXX, XXXX, XXXX, XXXX, XXXX }, \
31 { KB00, KB01, KB02, KB03, KB04, KB05, KB06, KB07, XXXX, XXXX, XXXX }, \
32 { KC00, KC01, KC02, KC03, KC04, KC05, KC06, XXXX, XXXX, XXXX, XXXX }, \
33 { KD00, KD01, KD02, KD03, KD04, KD05, KD06, KD07, XXXX, KD09, XXXX }, \
34 { KE00, KE01, KE02, KE03, KE04, KE05, KE06, KE07, KE08, KE09, KE10 }, \
35 { KF00, KF01, KF02, KF03, KF04, KF05, KF06, KF07, XXXX, KF09, KF10 }, \
36 { KG00, KG01, KG02, KG03, KG04, KG05, KG06, XXXX, XXXX, KG09, KG10 }, \
37 { KH00, KH01, KH02, KH03, KH04, KH05, XXXX, KH07, XXXX, KH09, KH10 }, \
38 { KI00, XXXX, KI02, KI03, KI04, KI05, KI06, XXXX, KI08, KI09, KI10 }, \
39 { KJ00, KJ01, KJ02, KJ03, KJ04, KJ05, XXXX, KJ07, XXXX, KJ09, KJ10 }, \
40 { XXXX, KK01, XXXX, XXXX, XXXX, XXXX, XXXX, KK07, KK08, KK09, KK10 }, \
41 { KL00, KL01, KL02, KL03, XXXX, KL05, XXXX, KL07, KL08, KL09, KL10 } \
42}
diff --git a/keyboards/kabedon/kabedon98e/keymaps/default/keymap.c b/keyboards/kabedon/kabedon98e/keymaps/default/keymap.c
new file mode 100644
index 000000000..bace7931d
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/keymaps/default/keymap.c
@@ -0,0 +1,108 @@
1/* Copyright 2021 KDon<370490639@qq.com>
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// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN,
22 _FN1
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26/*
27┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐ ┌──┐ ┌──┐
28│1A│ │0B││1B││0C││1C│ │0D││1D││0E││1E│ │0F││1F││1G││1H│ │5H│ │4I│ │4A│
29└──┘ └──┘└──┘└──┘└──┘ └──┘└──┘└──┘└──┘ └──┘└──┘└──┘└──┘ └──┘ └──┘ └──┘
30┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
31│3A││2B││3B││2C││3C││2D││3D││2E││3E││2F││3F││2G││3G││3H │ │3J││4J││4K││5K│ │0A│
32└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──────┘ └──┘└──┘└──┘└──┘ └──┘
33┌────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
34│5A ││4B││5B││4C││5C││4D││5D││4E││5E││4F││5F││4G││5G││4H │ │5J││6J││6K││2A│ │7A│
35└────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└────┘ └──┘└──┘└──┘│ │ └──┘
36┌─────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌───────┐ ┌──┐┌──┐┌──┐│ │
37│6B ││7B││6C││7C││6D││7D││6E││7E││6F││7F││6G││7H││7J │ │8J││8K││7K││ │
38└─────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└───────┘ └──┘└──┘└──┘└──┘
39┌───────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌─────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
40│9A ││9B││8C││9C││8D││9D││8E││9E││8F││9F││8G││9H │ ┌──┐ │9J││AJ││9K││6A│ │BA│
41└───────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└─────┘ │8I│ └──┘└──┘└──┘│ │ └──┘
42┌───┐┌──┐┌──┐┌──┐┌───────────────────────┐┌───┐┌───┐ └──┘ ┌──┐┌──┐│ │ ┌──┐
43│AB ││BB││BD││BC││BF ││AH ││BH │ ┌──┐┌──┐┌──┐ │AK││BK││ │ │8A│
44└───┘└──┘└──┘└──┘└───────────────────────┘└───┘└───┘ │AI││BI││BJ│ └──┘└──┘└──┘ └──┘
45 └──┘└──┘└──┘
46 */
47[_BASE] = LAYOUT(
48 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_INS, KC_MUTE,
49 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_HOME,
50 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_END,
51 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
52 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PGUP,
53 KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT, KC_PGDN),
54
55[_FN] = LAYOUT(
56 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,
57 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,
58 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,
59 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,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
61 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAD, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
62
63[_FN1] = LAYOUT(
64 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,
65 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,
66 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,
67 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,
68 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,
69 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)
70
71};
72
73static uint8_t encoder_state[ENCODERS] = {0};
74static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
75static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
76
77void encoder_action_unregister(void) {
78 for (int index = 0; index < ENCODERS; ++index) {
79 if (encoder_state[index]) {
80 keyevent_t encoder_event = (keyevent_t) {
81 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
82 .pressed = false,
83 .time = (timer_read() | 1)
84 };
85 encoder_state[index] = 0;
86 action_exec(encoder_event);
87 }
88 }
89}
90
91void encoder_action_register(uint8_t index, bool clockwise) {
92 keyevent_t encoder_event = (keyevent_t) {
93 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
94 .pressed = true,
95 .time = (timer_read() | 1)
96 };
97 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
98 action_exec(encoder_event);
99}
100
101void matrix_scan_user(void) {
102 encoder_action_unregister();
103}
104
105bool encoder_update_user(uint8_t index, bool clockwise) {
106 encoder_action_register(index, clockwise);
107 return true;
108};
diff --git a/keyboards/kabedon/kabedon98e/keymaps/via/keymap.c b/keyboards/kabedon/kabedon98e/keymaps/via/keymap.c
new file mode 100644
index 000000000..bace7931d
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/keymaps/via/keymap.c
@@ -0,0 +1,108 @@
1/* Copyright 2021 KDon<370490639@qq.com>
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// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN,
22 _FN1
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26/*
27┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐ ┌──┐ ┌──┐
28│1A│ │0B││1B││0C││1C│ │0D││1D││0E││1E│ │0F││1F││1G││1H│ │5H│ │4I│ │4A│
29└──┘ └──┘└──┘└──┘└──┘ └──┘└──┘└──┘└──┘ └──┘└──┘└──┘└──┘ └──┘ └──┘ └──┘
30┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
31│3A││2B││3B││2C││3C││2D││3D││2E││3E││2F││3F││2G││3G││3H │ │3J││4J││4K││5K│ │0A│
32└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──────┘ └──┘└──┘└──┘└──┘ └──┘
33┌────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
34│5A ││4B││5B││4C││5C││4D││5D││4E││5E││4F││5F││4G││5G││4H │ │5J││6J││6K││2A│ │7A│
35└────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└────┘ └──┘└──┘└──┘│ │ └──┘
36┌─────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌───────┐ ┌──┐┌──┐┌──┐│ │
37│6B ││7B││6C││7C││6D││7D││6E││7E││6F││7F││6G││7H││7J │ │8J││8K││7K││ │
38└─────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└───────┘ └──┘└──┘└──┘└──┘
39┌───────┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌─────┐ ┌──┐┌──┐┌──┐┌──┐ ┌──┐
40│9A ││9B││8C││9C││8D││9D││8E││9E││8F││9F││8G││9H │ ┌──┐ │9J││AJ││9K││6A│ │BA│
41└───────┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└─────┘ │8I│ └──┘└──┘└──┘│ │ └──┘
42┌───┐┌──┐┌──┐┌──┐┌───────────────────────┐┌───┐┌───┐ └──┘ ┌──┐┌──┐│ │ ┌──┐
43│AB ││BB││BD││BC││BF ││AH ││BH │ ┌──┐┌──┐┌──┐ │AK││BK││ │ │8A│
44└───┘└──┘└──┘└──┘└───────────────────────┘└───┘└───┘ │AI││BI││BJ│ └──┘└──┘└──┘ └──┘
45 └──┘└──┘└──┘
46 */
47[_BASE] = LAYOUT(
48 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_INS, KC_MUTE,
49 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_HOME,
50 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_END,
51 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
52 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PGUP,
53 KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT, KC_PGDN),
54
55[_FN] = LAYOUT(
56 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,
57 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,
58 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,
59 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,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
61 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAD, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
62
63[_FN1] = LAYOUT(
64 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,
65 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,
66 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,
67 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,
68 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,
69 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)
70
71};
72
73static uint8_t encoder_state[ENCODERS] = {0};
74static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
75static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
76
77void encoder_action_unregister(void) {
78 for (int index = 0; index < ENCODERS; ++index) {
79 if (encoder_state[index]) {
80 keyevent_t encoder_event = (keyevent_t) {
81 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
82 .pressed = false,
83 .time = (timer_read() | 1)
84 };
85 encoder_state[index] = 0;
86 action_exec(encoder_event);
87 }
88 }
89}
90
91void encoder_action_register(uint8_t index, bool clockwise) {
92 keyevent_t encoder_event = (keyevent_t) {
93 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
94 .pressed = true,
95 .time = (timer_read() | 1)
96 };
97 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
98 action_exec(encoder_event);
99}
100
101void matrix_scan_user(void) {
102 encoder_action_unregister();
103}
104
105bool encoder_update_user(uint8_t index, bool clockwise) {
106 encoder_action_register(index, clockwise);
107 return true;
108};
diff --git a/keyboards/kabedon/kabedon98e/keymaps/via/rules.mk b/keyboards/kabedon/kabedon98e/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/kabedon/kabedon98e/mcuconf.h b/keyboards/kabedon/kabedon98e/mcuconf.h
new file mode 100644
index 000000000..c1cdc7577
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/mcuconf.h
@@ -0,0 +1,27 @@
1/* Copyright 2020 QMK
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/*
18 * This file was auto-generated by:
19 * `qmk chibios-confmigrate -i keyboards/keyboards/kabedon/kabedon98e/mcuconf.h -r platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h`
20 */
21
22#pragma once
23
24#include_next <mcuconf.h>
25
26#undef STM32_PWM_USE_TIM3
27#define STM32_PWM_USE_TIM3 TRUE
diff --git a/keyboards/kabedon/kabedon98e/readme.md b/keyboards/kabedon/kabedon98e/readme.md
new file mode 100644
index 000000000..f240663b1
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/readme.md
@@ -0,0 +1,17 @@
1# KabeDon 98e
2
3![KabeDon98e](https://gitee.com/kabedon/picture/raw/master/pictures/980e.jpg)
4
5A mechanical keyboard PCB similar to 980 layout, it has two encoders.
6This PCB uses kailh hot swap socket.
7Kabedon980 includes RGB underflow.
8
9* Keyboard Maintainer: [370490639](https://github.com/370490639)
10* Hardware Supported: f103 KabeDon98e
11* Hardware Availability: [KabeDon98e]https://kabedon.taobao.com
12
13Make example for this keyboard (after setting up your build environment):
14
15 make kabedon/kabedon98e:default
16
17See 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/kabedon/kabedon98e/rules.mk b/keyboards/kabedon/kabedon98e/rules.mk
new file mode 100644
index 000000000..d5855bafa
--- /dev/null
+++ b/keyboards/kabedon/kabedon98e/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = STM32F103
3
4# Bootloader selection
5BOOTLOADER = stm32duino
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23WS2812_DRIVER = pwm
24ENCODER_ENABLE = yes