aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorくまお工房 <52371962+kumaokobo@users.noreply.github.com>2019-11-20 05:51:47 +0900
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2019-11-19 12:51:47 -0800
commitbb87bdec82433053eef68caa5fe4a03083a13e9c (patch)
tree6d726c80f221eb7fc3b446d36c4d435abdee5169
parent687a24f2980e6e490ac8e43104f4176b033c9243 (diff)
downloadqmk_firmware-bb87bdec82433053eef68caa5fe4a03083a13e9c.tar.gz
qmk_firmware-bb87bdec82433053eef68caa5fe4a03083a13e9c.zip
[Keyboard] Add Kudox column-staggered layout. (#7400)
* Add Kudox columner layout. * Remove an extra comma from info.json.
-rw-r--r--keyboards/kudox/columner/columner.c0
-rw-r--r--keyboards/kudox/columner/columner.h23
-rw-r--r--keyboards/kudox/columner/config.h91
-rw-r--r--keyboards/kudox/columner/info.json77
-rw-r--r--keyboards/kudox/columner/keymaps/default/config.h17
-rw-r--r--keyboards/kudox/columner/keymaps/default/keymap.c63
-rw-r--r--keyboards/kudox/columner/keymaps/default/readme.md1
-rw-r--r--keyboards/kudox/columner/readme.md32
-rw-r--r--keyboards/kudox/columner/rules.mk0
-rw-r--r--keyboards/kudox/kudox.h3
10 files changed, 307 insertions, 0 deletions
diff --git a/keyboards/kudox/columner/columner.c b/keyboards/kudox/columner/columner.c
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/kudox/columner/columner.c
diff --git a/keyboards/kudox/columner/columner.h b/keyboards/kudox/columner/columner.h
new file mode 100644
index 000000000..dcc745ddb
--- /dev/null
+++ b/keyboards/kudox/columner/columner.h
@@ -0,0 +1,23 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT( \
6 L00, L01, L02, L03, L04, L05, L06, R06, R05, R04, R03, R02, R01, R00, \
7 L10, L11, L12, L13, L14, L15, L16, R16, R15, R14, R13, R12, R11, R10, \
8 L20, L21, L22, L23, L24, L25, R25, R24, R23, R22, R21, R20, \
9 L30, L31, L32, L33, L34, L35, R35, R34, R33, R32, R31, R30, \
10 L40, L41, L42, L43, L44, L45, L46, R46, R45, R44, R43, R42, R41, R40 \
11) \
12{ \
13 { L00, L01, L02, L03, L04, L05, L06 }, \
14 { L10, L11, L12, L13, L14, L15, L16 }, \
15 { L20, L21, L22, L23, L24, L25 }, \
16 { L30, L31, L32, L33, L34, L35 }, \
17 { L40, L41, L42, L43, L44, L45, L46 }, \
18 { R00, R01, R02, R03, R04, R05, R06 }, \
19 { R10, R11, R12, R13, R14, R15, R16 }, \
20 { R20, R21, R22, R23, R24, R25 }, \
21 { R30, R31, R32, R33, R34, R35 }, \
22 { R40, R41, R42, R43, R44, R45, R46 } \
23}
diff --git a/keyboards/kudox/columner/config.h b/keyboards/kudox/columner/config.h
new file mode 100644
index 000000000..a76bce09d
--- /dev/null
+++ b/keyboards/kudox/columner/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 0x9691
24#define DEVICE_VER 0x0100
25#define MANUFACTURER Kumao Kobo
26#define PRODUCT The Kudox Keyboard
27#define DESCRIPTION Split column 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/columner/info.json b/keyboards/kudox/columner/info.json
new file mode 100644
index 000000000..8d98c8178
--- /dev/null
+++ b/keyboards/kudox/columner/info.json
@@ -0,0 +1,77 @@
1{
2 "url": "http://kumaokobo.com/",
3 "maintainer": "Kumao Kobo",
4 "keyboard_name": "Kudox Keyboard Columner",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label":"Esc", "x":0, "y":0.5, "w":1.25},
9 {"label":"1", "x":1.25, "y":0.5},
10 {"label":"2", "x":2.25, "y":0.25},
11 {"label":"3", "x":3.25, "y":0},
12 {"label":"4", "x":4.25, "y":0.25},
13 {"label":"5", "x":5.25, "y":0.5},
14 {"label":"6", "x":11, "y":0.5},
15 {"label":"7", "x":12, "y":0.25},
16 {"label":"8", "x":13, "y":0},
17 {"label":"9", "x":14, "y":0.25},
18 {"label":"0", "x":15, "y":0.5},
19 {"label":"\u2190", "x":16, "y":0.5, "w":1.25},
20 {"label":"Tab", "x":0, "y":1.5, "w":1.25},
21 {"label":"Q", "x":1.25, "y":1.5},
22 {"label":"W", "x":2.25, "y":1.25},
23 {"label":"E", "x":3.25, "y":1},
24 {"label":"R", "x":4.25, "y":1.25},
25 {"label":"T", "x":5.25, "y":1.5},
26 {"label":"{", "x":6.25, "y":1.25, "h":1.25},
27 {"label":"}", "x":10, "y":1.25, "h":1.25},
28 {"label":"Y", "x":11, "y":1.5},
29 {"label":"U", "x":12, "y":1.25},
30 {"label":"I", "x":13, "y":1},
31 {"label":"O", "x":14, "y":1.25},
32 {"label":"P", "x":15, "y":1.5},
33 {"label":"\\", "x":16, "y":1.5, "w":1.25},
34 {"label":"Ctrl", "x":0, "y":2.5, "w":1.25},
35 {"label":"A", "x":1.25, "y":2.5},
36 {"label":"S", "x":2.25, "y":2.25},
37 {"label":"D", "x":3.25, "y":2},
38 {"label":"F", "x":4.25, "y":2.25},
39 {"label":"G", "x":5.25, "y":2.5},
40 {"label":"H", "x":11, "y":2.5},
41 {"label":"J", "x":12, "y":2.25},
42 {"label":"K", "x":13, "y":2},
43 {"label":"L", "x":14, "y":2.25},
44 {"label":";", "x":15, "y":2.5},
45 {"label":"Enter", "x":16, "y":2.5, "w":1.25},
46 {"label":"Shift", "x":0, "y":3.5, "w":1.25},
47 {"label":"Z", "x":1.25, "y":3.5},
48 {"label":"X", "x":2.25, "y":3.25},
49 {"label":"V", "x":4.25, "y":3.25},
50 {"label":"C", "x":3.25, "y":3},
51 {"label":"B", "x":5.25, "y":3.5},
52 {"label":"-", "x":6.25, "y":2.5, "h":1.25},
53 {"label":"=", "x":10, "y":2.5, "h":1.25},
54 {"label":"N", "x":11, "y":3.5},
55 {"label":"M", "x":12, "y":3.25},
56 {"label":",", "x":13, "y":3},
57 {"label":".", "x":14, "y":3.25},
58 {"label":"/", "x":15, "y":3.5},
59 {"label":"Shift", "x":16, "y":3.5, "w":1.25},
60 {"label":"Alt", "x":0, "y":4.5, "w":1.25},
61 {"label":"'", "x":1.25, "y":4.5},
62 {"label":"~", "x":2.25, "y":4.25},
63 {"label":"Del", "x":3.25, "y":4},
64 {"label":"LANG2", "x":4.25, "y":4.5},
65 {"label":"GUI", "x":5.25, "y":4.75},
66 {"label":"Space", "x":6.25, "y":5},
67 {"label":"Space", "x":10, "y":5},
68 {"label":"GUI", "x":11, "y":4.75},
69 {"label":"LANG2", "x":12, "y":4.5},
70 {"label":"\u2190", "x":13, "y":4},
71 {"label":"\u2193", "x":14, "y":4.25},
72 {"label":"\u2191", "x":15, "y":4.5},
73 {"label":"\u2192", "x":16, "y":4.5, "w":1.25}
74 ]
75 }
76 }
77}
diff --git a/keyboards/kudox/columner/keymaps/default/config.h b/keyboards/kudox/columner/keymaps/default/config.h
new file mode 100644
index 000000000..f5bf85cca
--- /dev/null
+++ b/keyboards/kudox/columner/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/columner/keymaps/default/keymap.c b/keyboards/kudox/columner/keymaps/default/keymap.c
new file mode 100644
index 000000000..84ebcc906
--- /dev/null
+++ b/keyboards/kudox/columner/keymaps/default/keymap.c
@@ -0,0 +1,63 @@
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 KC_ALES LALT_T(KC_ESC)
13
14#define KC_LGENT MT(KC_LGUI, KC_ENT)
15#define KC_RGENT MT(KC_RGUI, KC_ENT)
16
17#define KC_L1NUM LT(_NUMB, 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_LBRC , KC_RBRC ,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_MINS , KC_EQL ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,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_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
31 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
32 KC_ALES ,KC_QUOT ,KC_GRV ,KC_DEL ,KC_L2SYM,KC_LGENT,KC_SPC , KC_SPC ,KC_RGENT,KC_L1NUM,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
33 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
34 ),
35
36 [_SYMB] = LAYOUT(
37 //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐
38 _______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 ,KC_F11 , KC_F12 ,KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,_______ ,
39 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
40 _______ ,KC_DQUO ,KC_QUOT ,KC_TILD ,KC_ASTR ,KC_PLUS ,_______ , _______ ,_______ ,_______ ,_______ ,KC_TILD ,KC_GRV ,KC_JYEN ,
41 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
42 _______ ,KC_AT ,KC_COLN ,KC_GRV ,_______ ,KC_MINS , _______ ,_______ ,_______ ,KC_DQUO ,KC_QUOT ,_______ ,
43 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
44 _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,KC_DOT ,KC_SLSH , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
45 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
46 _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,KC_LT ,KC_UNDS ,KC_CIRC ,KC_GT
47 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
48 ),
49
50 [_NUMB] = LAYOUT(
51 //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐
52 _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
53 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
54 _______ ,KC_7 ,KC_8 ,KC_9 ,KC_ASTR ,KC_PLUS ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
55 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ └────────┼────────┼────────┼────────┼────────┼────────┼────────┤
56 _______ ,KC_4 ,KC_5 ,KC_6 ,KC_0 ,KC_MINS , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
57 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
58 _______ ,KC_1 ,KC_2 ,KC_3 ,KC_DOT ,KC_SLSH , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,
59 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┴────────┼────────┼────────┼────────┤
60 _______ ,_______ ,KC_JYEN ,KC_0 ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______
61 //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘
62 )
63};
diff --git a/keyboards/kudox/columner/keymaps/default/readme.md b/keyboards/kudox/columner/keymaps/default/readme.md
new file mode 100644
index 000000000..13d9e8bee
--- /dev/null
+++ b/keyboards/kudox/columner/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for Kudox Keyboard Columner
diff --git a/keyboards/kudox/columner/readme.md b/keyboards/kudox/columner/readme.md
new file mode 100644
index 000000000..0c62174bc
--- /dev/null
+++ b/keyboards/kudox/columner/readme.md
@@ -0,0 +1,32 @@
1# The Kudox Keyboard Columner
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-columner.jpg" alt="Kudox Columner" width="600"/>
9</p>
10
11- Keyboard Maintainer: [Kumao Kobo](https://github.com/kumaokobo)
12- Hardware Supported: Kudox Columner PCB rev1.0 w/ Pro Micro
13
14Make example for this keyboard (after setting up your build environment):
15
16```sh
17make kudox/columner:default
18```
19
20
21Example of flashing this keyboard:
22
23```sh
24make kudox/columner:default:flash
25```
26
27See 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).
28
29
30## Layout
31
32![layout](https://raw.githubusercontent.com/kumaokobo/kudox-keyboard/master/img/kudox-columner-layout-rev1.png)
diff --git a/keyboards/kudox/columner/rules.mk b/keyboards/kudox/columner/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/kudox/columner/rules.mk
diff --git a/keyboards/kudox/kudox.h b/keyboards/kudox/kudox.h
index 176f02fb5..09549fbc5 100644
--- a/keyboards/kudox/kudox.h
+++ b/keyboards/kudox/kudox.h
@@ -22,5 +22,8 @@
22#ifdef KEYBOARD_kudox_rev2 22#ifdef KEYBOARD_kudox_rev2
23 #include "rev2.h" 23 #include "rev2.h"
24#endif 24#endif
25#ifdef KEYBOARD_kudox_columner
26 #include "columner.h"
27#endif
25 28
26#include "quantum.h" 29#include "quantum.h"