aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kudox
diff options
context:
space:
mode:
authorx1 <viva008@gmail.com>2019-08-07 02:14:40 +0900
committerDrashna Jaelre <drashna@live.com>2019-08-06 10:14:40 -0700
commit9587fac72a749e07bcdede40f8059df77a04a3e4 (patch)
tree1a9c4df581f33464e241366d92b1df897bc5927a /keyboards/kudox
parente5831d79c044f394243cfdfe604b91837067b7d6 (diff)
downloadqmk_firmware-9587fac72a749e07bcdede40f8059df77a04a3e4.tar.gz
qmk_firmware-9587fac72a749e07bcdede40f8059df77a04a3e4.zip
[Keyboard] Add kudox keyboard (#6459)
* Add Kudox Keyboard profile. * Modified info.json and image link on readme. * Remove unnecessary codes. * Set BootLoader caterina. * Remove duplicated settings on rules.mk. * Clean up config.h. * Modified include header path. * Modified info.json to adjust 4th row keys y position. * Separate default keymap and my keymap. * Modified RGB_LED_* settings on kudox/rev1/config.h.
Diffstat (limited to 'keyboards/kudox')
-rw-r--r--keyboards/kudox/config.h27
-rw-r--r--keyboards/kudox/info.json77
-rw-r--r--keyboards/kudox/keymaps/default/config.h17
-rw-r--r--keyboards/kudox/keymaps/default/keymap.c49
-rw-r--r--keyboards/kudox/keymaps/default/readme.md1
-rw-r--r--keyboards/kudox/keymaps/default/rules.mk0
-rw-r--r--keyboards/kudox/keymaps/x1/config.h17
-rw-r--r--keyboards/kudox/keymaps/x1/keymap.c73
-rw-r--r--keyboards/kudox/keymaps/x1/readme.md1
-rw-r--r--keyboards/kudox/keymaps/x1/rules.mk0
-rw-r--r--keyboards/kudox/kudox.c16
-rw-r--r--keyboards/kudox/kudox.h23
-rw-r--r--keyboards/kudox/readme.md26
-rw-r--r--keyboards/kudox/rev1/config.h91
-rw-r--r--keyboards/kudox/rev1/rev1.c22
-rw-r--r--keyboards/kudox/rev1/rev1.h24
-rw-r--r--keyboards/kudox/rev1/rules.mk0
-rw-r--r--keyboards/kudox/rules.mk73
18 files changed, 537 insertions, 0 deletions
diff --git a/keyboards/kudox/config.h b/keyboards/kudox/config.h
new file mode 100644
index 000000000..36c8f68b9
--- /dev/null
+++ b/keyboards/kudox/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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#pragma once
18
19#include "config_common.h"
20
21#define USE_SERIAL
22
23/* Select hand configuration */
24#define MASTER_LEFT
25// #define MASTER_RIGHT
26// #define EE_HANDS
27
diff --git a/keyboards/kudox/info.json b/keyboards/kudox/info.json
new file mode 100644
index 000000000..842fb655c
--- /dev/null
+++ b/keyboards/kudox/info.json
@@ -0,0 +1,77 @@
1{
2 "keyboard_name": "Kudox Keyboard",
3 "url": "",
4 "maintainer": "Kumao Kobo",
5 "width": 17,
6 "height": 6,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"1", "x":1, "y":0},
12 {"label":"2", "x":2, "y":0},
13 {"label":"3", "x":3, "y":0},
14 {"label":"4", "x":4, "y":0},
15 {"label":"5", "x":5, "y":0},
16 {"label":"6", "x":11, "y":0},
17 {"label":"7", "x":12, "y":0},
18 {"label":"8", "x":13, "y":0},
19 {"label":"9", "x":14, "y":0},
20 {"label":"0", "x":15, "y":0},
21 {"label":"\u2190", "x":16, "y":0},
22 {"label":"Tab", "x":0, "y":1, "w":1.25},
23 {"label":"Q", "x":1.25, "y":1},
24 {"label":"W", "x":2.25, "y":1},
25 {"label":"E", "x":3.25, "y":1},
26 {"label":"R", "x":4.25, "y":1},
27 {"label":"T", "x":5.25, "y":1},
28 {"label":"LANG2", "x":6.25, "y":1},
29 {"label":"Y", "x":9.75, "y":1},
30 {"label":"U", "x":10.75, "y":1},
31 {"label":"I", "x":11.75, "y":1},
32 {"label":"O", "x":12.75, "y":1},
33 {"label":"P", "x":13.75, "y":1},
34 {"label":"/", "x":14.75, "y":1},
35 {"label":"\\", "x":15.75, "y":1, "w":1.25},
36 {"label":"Ctrl", "x":0, "y":2, "w":1.75},
37 {"label":"A", "x":1.75, "y":2},
38 {"label":"S", "x":2.75, "y":2},
39 {"label":"D", "x":3.75, "y":2},
40 {"label":"F", "x":4.75, "y":2},
41 {"label":"G", "x":5.75, "y":2},
42 {"label":"H", "x":10.25, "y":2},
43 {"label":"J", "x":11.25, "y":2},
44 {"label":"K", "x":12.25, "y":2},
45 {"label":"L", "x":13.25, "y":2},
46 {"label":";", "x":14.25, "y":2},
47 {"label":"Enter", "x":15.25, "y":2, "w":1.75},
48 {"label":"Shift", "x":0, "y":3, "w":2.25},
49 {"label":"Z", "x":2.25, "y":3},
50 {"label":"X", "x":3.25, "y":3},
51 {"label":"C", "x":4.25, "y":3},
52 {"label":"V", "x":5.25, "y":3},
53 {"label":"B", "x":6.25, "y":3},
54 {"label":"LANG1", "x":9.75, "y":3},
55 {"label":"N", "x":10.75, "y":3},
56 {"label":"M", "x":11.75, "y":3},
57 {"label":",", "x":12.75, "y":3},
58 {"label":".", "x":13.75, "y":3},
59 {"label":"Shift", "x":14.75, "y":3, "w":2.25},
60 {"label":"Alt", "x":0, "y":4, "w":1.25},
61 {"label":"'", "x":1.25, "y":4},
62 {"label":"-", "x":2.25, "y":4},
63 {"label":"=", "x":3.25, "y":4},
64 {"label":"layer", "x":4.25, "y":4.33, "w":1.25},
65 {"label":"GUI", "x":5.5, "y":4.67},
66 {"label":"Space", "x":6.5, "y":5},
67 {"label":"Enter", "x":9.5, "y":5},
68 {"label":"Del", "x":10.5, "y":4.67},
69 {"label":"layer", "x":11.5, "y":4.33, "w":1.25},
70 {"label":"\u2190", "x":12.75, "y":4},
71 {"label":"\u2193", "x":13.75, "y":4},
72 {"label":"\u2191", "x":14.75, "y":4},
73 {"label":"\u2192", "x":15.75, "y":4, "w":1.25}
74 ]
75 }
76 }
77}
diff --git a/keyboards/kudox/keymaps/default/config.h b/keyboards/kudox/keymaps/default/config.h
new file mode 100644
index 000000000..f5bf85cca
--- /dev/null
+++ b/keyboards/kudox/keymaps/default/config.h
@@ -0,0 +1,17 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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#pragma once
diff --git a/keyboards/kudox/keymaps/default/keymap.c b/keyboards/kudox/keymaps/default/keymap.c
new file mode 100644
index 000000000..9078b65c1
--- /dev/null
+++ b/keyboards/kudox/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
1#include QMK_KEYBOARD_H
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7#define _QWERTY 0
8#define _SYMB 1
9
10// Shortcut to make keymap more readable
11#define SYM_L MO(_SYMB)
12
13#define KC_ALES LALT_T(KC_ESC)
14
15#define KC_RGENT MT(KC_RGUI, KC_ENT)
16
17#define KC_L1SYM LT(_SYMB, KC_LANG1)
18#define KC_L2SYM LT(_SYMB, KC_LANG2)
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22 [_QWERTY] = LAYOUT(
23 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
24 KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_BSPC ,
25 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
26 KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_L2SYM, KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_SLSH ,KC_BSLS ,
27 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
28 KC_LCTL ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G , KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_ENT ,
29 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
30 KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_L1SYM,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_RSFT ,
31 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
32 KC_ALES ,KC_QUOT ,KC_MINS ,KC_EQL ,KC_ENT ,KC_LGUI ,KC_SPC , KC_RGENT,KC_DEL ,SYM_L ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
33 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
34 ),
35//KC_EQL
36 [_SYMB] = LAYOUT(
37 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
38 KC_GRV ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,_______ ,
39 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
40 _______ ,KC_DQUO ,KC_QUOT ,KC_GRV ,KC_ASTR ,KC_PLUS ,KC_EQL , KC_LPRN ,KC_RPRN ,KC_PIPE ,KC_ASTR ,KC_TILD ,KC_CIRC ,KC_JYEN ,
41 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
42 _______ ,KC_AT ,KC_COLN ,KC_GRV ,_______ ,KC_MINS , KC_LBRC ,KC_RBRC ,KC_DOT ,KC_SLSH ,KC_MINS ,_______ ,
43 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
44 _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,KC_DOT ,KC_SLSH , _______ ,KC_LCBR ,KC_RCBR ,KC_DOT ,KC_SLSH ,_______ ,
45 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
46 _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,KC_LT ,KC_UNDS ,KC_CIRC ,KC_GT
47 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
48 )
49};
diff --git a/keyboards/kudox/keymaps/default/readme.md b/keyboards/kudox/keymaps/default/readme.md
new file mode 100644
index 000000000..98d8b2a05
--- /dev/null
+++ b/keyboards/kudox/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for Kudox Keyboard
diff --git a/keyboards/kudox/keymaps/default/rules.mk b/keyboards/kudox/keymaps/default/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/kudox/keymaps/default/rules.mk
diff --git a/keyboards/kudox/keymaps/x1/config.h b/keyboards/kudox/keymaps/x1/config.h
new file mode 100644
index 000000000..f5bf85cca
--- /dev/null
+++ b/keyboards/kudox/keymaps/x1/config.h
@@ -0,0 +1,17 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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#pragma once
diff --git a/keyboards/kudox/keymaps/x1/keymap.c b/keyboards/kudox/keymaps/x1/keymap.c
new file mode 100644
index 000000000..42f507ddf
--- /dev/null
+++ b/keyboards/kudox/keymaps/x1/keymap.c
@@ -0,0 +1,73 @@
1#include QMK_KEYBOARD_H
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7#define _QWERTY 0
8#define _SYMB 1
9#define _NUMB 2
10
11// Shortcut to make keymap more readable
12#define SYM_L MO(_SYMB)
13#define NUM_L MO(_NUMB)
14
15#define KC_ALES LALT_T(KC_ESC)
16
17#define KC_RGENT MT(KC_RGUI, KC_ENT)
18#define KC_LGUI2 RALT_T(KC_LANG2)
19
20#define KC_L1SYM LT(_SYMB, KC_LANG1)
21#define KC_L2SYM LT(_SYMB, KC_LANG2)
22
23#define KC_L1NUM LT(_NUMB, KC_LANG1)
24#define KC_ENNUM LT(_NUMB, KC_ENT)
25
26#define KC_FSYM LT(_SYMB, KC_F)
27#define KC_JNUM LT(_NUMB, KC_J)
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 [_QWERTY] = LAYOUT(
32 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
33 KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_BSPC ,
34 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
35 KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_L2SYM, KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_SLSH ,KC_BSLS ,
36 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
37 KC_LCTL ,KC_A ,KC_S ,KC_D ,KC_FSYM ,KC_G , KC_H ,KC_JNUM ,KC_K ,KC_L ,KC_SCLN ,KC_ENT ,
38 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
39 KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_L1NUM,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_RSFT ,
40 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
41 KC_ALES ,KC_QUOT ,KC_MINS ,KC_EQL ,KC_ENNUM,KC_LGUI ,KC_SPC , KC_RGENT,KC_DEL ,SYM_L ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
42 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
43 ),
44//KC_EQL
45 [_SYMB] = LAYOUT(
46 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
47 KC_GRV ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,_______ ,
48 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
49 _______ ,KC_DQUO ,KC_QUOT ,KC_GRV ,KC_ASTR ,KC_PLUS ,KC_EQL , KC_LPRN ,KC_RPRN ,KC_PIPE ,KC_ASTR ,KC_TILD ,KC_CIRC ,KC_JYEN ,
50 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
51 _______ ,KC_AT ,KC_COLN ,KC_GRV ,_______ ,KC_MINS , KC_LBRC ,KC_RBRC ,KC_DOT ,KC_SLSH ,KC_MINS ,_______ ,
52 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
53 _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,KC_DOT ,KC_SLSH , _______ ,KC_LCBR ,KC_RCBR ,KC_DOT ,KC_SLSH ,_______ ,
54 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
55 _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,KC_LT ,KC_UNDS ,KC_CIRC ,KC_GT
56 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
57 ),
58
59 [_NUMB] = LAYOUT(
60 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
61 KC_GRV ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
62 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
63 _______ ,KC_7 ,KC_8 ,KC_9 ,KC_ASTR ,KC_PLUS ,KC_EQL , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
64 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
65 _______ ,KC_4 ,KC_5 ,KC_6 ,KC_0 ,KC_MINS , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
66 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
67 _______ ,KC_1 ,KC_2 ,KC_3 ,KC_DOT ,KC_SLSH , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
68 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
69 _______ ,KC_JYEN ,KC_0 ,_______ ,_______ ,_______ ,_______ , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
70 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
71 )
72
73};
diff --git a/keyboards/kudox/keymaps/x1/readme.md b/keyboards/kudox/keymaps/x1/readme.md
new file mode 100644
index 000000000..1085735af
--- /dev/null
+++ b/keyboards/kudox/keymaps/x1/readme.md
@@ -0,0 +1 @@
# [x1](https://github.com/x1-) 's keymap for Kudox Keyboard
diff --git a/keyboards/kudox/keymaps/x1/rules.mk b/keyboards/kudox/keymaps/x1/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/kudox/keymaps/x1/rules.mk
diff --git a/keyboards/kudox/kudox.c b/keyboards/kudox/kudox.c
new file mode 100644
index 000000000..d7643747a
--- /dev/null
+++ b/keyboards/kudox/kudox.c
@@ -0,0 +1,16 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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 "kudox.h"
diff --git a/keyboards/kudox/kudox.h b/keyboards/kudox/kudox.h
new file mode 100644
index 000000000..8ff75559d
--- /dev/null
+++ b/keyboards/kudox/kudox.h
@@ -0,0 +1,23 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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#pragma once
18
19#ifdef KEYBOARD_kudox_rev1
20 #include "rev1.h"
21#endif
22
23#include "quantum.h"
diff --git a/keyboards/kudox/readme.md b/keyboards/kudox/readme.md
new file mode 100644
index 000000000..42e1ed937
--- /dev/null
+++ b/keyboards/kudox/readme.md
@@ -0,0 +1,26 @@
1# The Kudox keyboard
2
3<p align="center">
4<img src="https://raw.githubusercontent.com/kumaokobo/kudox-keyboard/master/img/kudox.png" alt="Kudox logo" width="600"/>
5</p>
6
7<p align="center">
8<img src="https://raw.githubusercontent.com/kumaokobo/kudox-keyboard/master/img/kudox-pcb.jpg" alt="Kudox PCB rev1.0" width="600"/>
9</p>
10
11- Keyboard Maintainer: [Kumao Kobo](https://github.com/kumaokobo)
12- Hardware Supported: Kudox PCB rev1.0 w/ Pro Micro
13
14Make example for this keyboard (after setting up your build environment):
15
16```sh
17make kudox/rev1:default
18```
19
20Example of flashing this keyboard:
21
22```sh
23make kudox/rev1:default:avrdude
24```
25
26See 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/kudox/rev1/config.h b/keyboards/kudox/rev1/config.h
new file mode 100644
index 000000000..b57b6b7ac
--- /dev/null
+++ b/keyboards/kudox/rev1/config.h
@@ -0,0 +1,91 @@
1/* Copyright 2019 Kumao Kobo <kumaokobo@gmail.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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x9690
24#define DEVICE_VER 0x0100
25#define MANUFACTURER Kumao Kobo
26#define PRODUCT The Kudox Keyboard
27#define DESCRIPTION Split row staggered 5x7 custom keyboard
28
29/* key matrix size */
30// Rows are doubled-up
31#define MATRIX_ROWS 10
32#define MATRIX_COLS 7
33
34// wiring of each half
35#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
36#define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
37// #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5} //uncomment this line and comment line above if you need to reverse left-to-right key order
38
39/* COL2ROW or ROW2COL */
40#define DIODE_DIRECTION COL2ROW
41
42/* define if matrix has ghost */
43//#define MATRIX_HAS_GHOST
44
45/* number of backlight levels */
46// #define BACKLIGHT_LEVELS 3
47
48/* Set 0 if debouncing isn't needed */
49#define DEBOUNCE 5
50
51/* serial.c configuration for split keyboard */
52#define SOFT_SERIAL_PIN D0
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/* ws2812 RGB LED */
60#define RGB_DI_PIN D3
61
62#undef RGBLED_NUM
63#define RGBLED_NUM 14 // Number of LEDs
64#define RGBLIGHT_ANIMATIONS
65#define RGBLIGHT_HUE_STEP 8
66#define RGBLIGHT_SAT_STEP 8
67#define RGBLIGHT_VAL_STEP 8
68
69/*
70 * Feature disable options
71 * These options are also useful to firmware size reduction.
72 */
73
74/* disable debug print */
75// #define NO_DEBUG
76
77/* disable print */
78// #define NO_PRINT
79
80/* disable action features */
81//#define NO_ACTION_LAYER
82//#define NO_ACTION_TAPPING
83//#define NO_ACTION_ONESHOT
84//#define NO_ACTION_MACRO
85//#define NO_ACTION_FUNCTION
86
87#define MOUSEKEY_INTERVAL 20
88#define MOUSEKEY_DELAY 0
89#define MOUSEKEY_TIME_TO_MAX 60
90#define MOUSEKEY_MAX_SPEED 7
91#define MOUSEKEY_WHEEL_DELAY 0
diff --git a/keyboards/kudox/rev1/rev1.c b/keyboards/kudox/rev1/rev1.c
new file mode 100644
index 000000000..3b39ee764
--- /dev/null
+++ b/keyboards/kudox/rev1/rev1.c
@@ -0,0 +1,22 @@
1#include "kudox.h"
2
3
4#ifdef SSD1306OLED
5void led_set_kb(uint8_t usb_led) {
6 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
7 led_set_user(usb_led);
8}
9#endif
10
11void matrix_init_kb(void) {
12
13 // // green led on
14 // DDRD |= (1<<5);
15 // PORTD &= ~(1<<5);
16
17 // // orange led on
18 // DDRB |= (1<<0);
19 // PORTB &= ~(1<<0);
20
21 matrix_init_user();
22};
diff --git a/keyboards/kudox/rev1/rev1.h b/keyboards/kudox/rev1/rev1.h
new file mode 100644
index 000000000..7a97cce69
--- /dev/null
+++ b/keyboards/kudox/rev1/rev1.h
@@ -0,0 +1,24 @@
1#pragma once
2
3#include "kudox.h"
4#include "quantum.h"
5
6#define LAYOUT( \
7 L00, L01, L02, L03, L04, L05, R05, R04, R03, R02, R01, R00, \
8 L10, L11, L12, L13, L14, L15, L16, R16, R15, R14, R13, R12, R11, R10, \
9 L20, L21, L22, L23, L24, L25, R25, R24, R23, R22, R21, R20, \
10 L30, L31, L32, L33, L34, L35, R35, R34, R33, R32, R31, R30, \
11 L40, L41, L42, L43, L44, L45, L46, R46, R45, R44, R43, R42, R41, R40 \
12) \
13{ \
14 { L00, L01, L02, L03, L04, L05 }, \
15 { L10, L11, L12, L13, L14, L15, L16 }, \
16 { L20, L21, L22, L23, L24, L25 }, \
17 { L30, L31, L32, L33, L34, L35 }, \
18 { L40, L41, L42, L43, L44, L45, L46 }, \
19 { R00, R01, R02, R03, R04, R05 }, \
20 { R10, R11, R12, R13, R14, R15, R16 }, \
21 { R20, R21, R22, R23, R24, R25 }, \
22 { R30, R31, R32, R33, R34, R35 }, \
23 { R40, R41, R42, R43, R44, R45, R46 } \
24}
diff --git a/keyboards/kudox/rev1/rules.mk b/keyboards/kudox/rev1/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/kudox/rev1/rules.mk
diff --git a/keyboards/kudox/rules.mk b/keyboards/kudox/rules.mk
new file mode 100644
index 000000000..ca954bec3
--- /dev/null
+++ b/keyboards/kudox/rules.mk
@@ -0,0 +1,73 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection
42# Teensy halfkay
43# Pro Micro caterina
44# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu
47# atmega32a bootloadHID
48BOOTLOADER = caterina
49
50
51# Build Options
52# change yes to no to disable
53#
54BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
55MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
56EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
57CONSOLE_ENABLE = no # Console for debug(+400)
58COMMAND_ENABLE = yes # Commands for debug and configuration
59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
61# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
62NKRO_ENABLE = no # USB Nkey Rollover
63BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
64MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
65UNICODE_ENABLE = no # Unicode
66BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
67AUDIO_ENABLE = no # Audio output on port C6
68FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
69RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
70
71SPLIT_KEYBOARD = yes
72
73DEFAULT_FOLDER = kudox/rev1