aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-02-07 17:09:55 +0000
committerQMK Bot <hello@qmk.fm>2021-02-07 17:09:55 +0000
commitffd768dfbcb784e7aa5bb92054f0e7fccab37a50 (patch)
tree3ba4cf690e4c82ba494aee760bc49010b5033421
parent380e1a28c927e9469f917167dd2b804743f9e081 (diff)
parent74145dc7ae297fcd2e9abcdc9432949c7c627ce6 (diff)
downloadqmk_firmware-ffd768dfbcb784e7aa5bb92054f0e7fccab37a50.tar.gz
qmk_firmware-ffd768dfbcb784e7aa5bb92054f0e7fccab37a50.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/nknl7jp/config.h84
-rw-r--r--keyboards/nknl7jp/info.json83
-rw-r--r--keyboards/nknl7jp/keymaps/default/config.h22
-rw-r--r--keyboards/nknl7jp/keymaps/default/keymap.c59
-rw-r--r--keyboards/nknl7jp/keymaps/salicylic/config.h23
-rw-r--r--keyboards/nknl7jp/keymaps/salicylic/keymap.c145
-rw-r--r--keyboards/nknl7jp/keymaps/via/config.h22
-rw-r--r--keyboards/nknl7jp/keymaps/via/keymap.c84
-rw-r--r--keyboards/nknl7jp/keymaps/via/rules.mk1
-rw-r--r--keyboards/nknl7jp/nknl7jp.c18
-rw-r--r--keyboards/nknl7jp/nknl7jp.h54
-rw-r--r--keyboards/nknl7jp/readme.md17
-rw-r--r--keyboards/nknl7jp/rules.mk24
13 files changed, 636 insertions, 0 deletions
diff --git a/keyboards/nknl7jp/config.h b/keyboards/nknl7jp/config.h
new file mode 100644
index 000000000..7fb3c0e9c
--- /dev/null
+++ b/keyboards/nknl7jp/config.h
@@ -0,0 +1,84 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x04D8
24#define PRODUCT_ID 0xEA55
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Salicylic_Acid
27#define PRODUCT nknl7jp
28
29/* key matrix size */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 9
32
33// wiring of each half
34#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
35#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5, D2 }
36
37#define DIODE_DIRECTION COL2ROW
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42/* serial.c configuration for split keyboard */
43#define SOFT_SERIAL_PIN D0
44#define SPLIT_HAND_PIN B6
45
46/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47#define LOCKING_SUPPORT_ENABLE
48/* Locking resynchronize hack */
49#define LOCKING_RESYNC_ENABLE
50
51/* ws2812 RGB LED */
52#define RGB_DI_PIN D3
53
54#ifndef RGBLED_NUM
55 #define RGBLED_NUM 20
56 #define RGBLIGHT_SPLIT
57 #define RGBLED_SPLIT { 9, 11 }
58#endif
59
60#define RGBLIGHT_ANIMATIONS
61
62#ifndef IOS_DEVICE_ENABLE
63 #define RGBLIGHT_LIMIT_VAL 180
64 #define RGBLIGHT_VAL_STEP 17
65#else
66 #define RGBLIGHT_LIMIT_VAL 50
67 #define RGBLIGHT_VAL_STEP 4
68#endif
69#define RGBLIGHT_HUE_STEP 10
70#define RGBLIGHT_SAT_STEP 17
71
72#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
73// USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
74// 120 RGBoff, OLEDoff
75// 120 OLED
76// 330 RGB 6
77// 300 RGB 32
78// 310 OLED & RGB 32
79 #define USB_MAX_POWER_CONSUMPTION 400
80#else
81 // fix iPhone and iPad power adapter issue
82 // iOS device need lessthan 100
83 #define USB_MAX_POWER_CONSUMPTION 100
84#endif
diff --git a/keyboards/nknl7jp/info.json b/keyboards/nknl7jp/info.json
new file mode 100644
index 000000000..c0d87c8a2
--- /dev/null
+++ b/keyboards/nknl7jp/info.json
@@ -0,0 +1,83 @@
1{
2 "keyboard_name": "nknl7jp",
3 "url": "https://salicylic-acid3.hatenablog.com/",
4 "maintainer": "Salicylic_acid3",
5 "width": 17.25,
6 "height": 5.25,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"ESC", "x":0, "y":0},
11 {"label":"!", "x":1, "y":0},
12 {"label":"\"", "x":2, "y":0},
13 {"label":"#", "x":3, "y":0},
14 {"label":"$", "x":4, "y":0},
15 {"label":"%", "x":5, "y":0},
16 {"label":"&", "x":6.75, "y":0},
17 {"label":"'", "x":7.75, "y":0},
18 {"label":"(", "x":8.75, "y":0},
19 {"label":")", "x":9.75, "y":0},
20 {"label":"", "x":10.75, "y":0},
21 {"label":"=", "x":11.75, "y":0},
22 {"label":"~", "x":12.75, "y":0},
23 {"label":"|", "x":13.75, "y":0},
24 {"label":"Back", "x":14.75, "y":0},
25 {"label":"Del", "x":16.25, "y":0},
26 {"label":"Tab", "x":0, "y":1, "w":1.5},
27 {"label":"Q", "x":1.5, "y":1},
28 {"label":"W", "x":2.5, "y":1},
29 {"label":"E", "x":3.5, "y":1},
30 {"label":"R", "x":4.5, "y":1},
31 {"label":"T", "x":5.5, "y":1},
32 {"label":"Y", "x":7.25, "y":1},
33 {"label":"U", "x":8.25, "y":1},
34 {"label":"I", "x":9.25, "y":1},
35 {"label":"O", "x":10.25, "y":1},
36 {"label":"P", "x":11.25, "y":1},
37 {"label":"`", "x":12.25, "y":1},
38 {"label":"{", "x":13.25, "y":1},
39 {"label":"Return", "x":14.5, "y":1, "w":1.25, "h":2},
40 {"label":"Page", "x":16.25, "y":1},
41 {"label":"CapsLock", "x":0, "y":2, "w":1.75},
42 {"label":"A", "x":1.75, "y":2},
43 {"label":"S", "x":2.75, "y":2},
44 {"label":"D", "x":3.75, "y":2},
45 {"label":"F", "x":4.75, "y":2},
46 {"label":"G", "x":5.75, "y":2},
47 {"label":"H", "x":7.5, "y":2},
48 {"label":"J", "x":8.5, "y":2},
49 {"label":"K", "x":9.5, "y":2},
50 {"label":"L", "x":10.5, "y":2},
51 {"label":":", "x":11.5, "y":2},
52 {"label":"\"", "x":12.5, "y":2},
53 {"label":"}", "x":13.5, "y":2},
54 {"label":"Page", "x":16.25, "y":2},
55 {"label":"Shift", "x":0, "y":3, "w":2.25},
56 {"label":"Z", "x":2.25, "y":3},
57 {"label":"X", "x":3.25, "y":3},
58 {"label":"C", "x":4.25, "y":3},
59 {"label":"V", "x":5.25, "y":3},
60 {"label":"B", "x":6.25, "y":3},
61 {"label":"N", "x":8, "y":3},
62 {"label":"M", "x":9, "y":3},
63 {"label":"<", "x":10, "y":3},
64 {"label":">", "x":11, "y":3},
65 {"label":"?", "x":12, "y":3},
66 {"label":"_", "x":13, "y":3},
67 {"label":"App", "x":14, "y":3},
68 {"label":"\u2191", "x":15.25, "y":3.25},
69 {"label":"Control", "x":0, "y":4, "w":1.25},
70 {"label":"Win", "x":1.25, "y":4},
71 {"label":"Alt", "x":2.25, "y":4, "w":1.25},
72 {"label":"\u7121\u5909", "x":3.5, "y":4},
73 {"x":4.5, "y":4, "w":1.25}, {"x":5.75, "y":4},
74 {"x":7.5, "y":4}, {"x":8.5, "y":4, "w":1.75},
75 {"label":"\u5909\u63db", "x":10.25, "y":4, "w":1.25},
76 {"label":"\u304b\u306a", "x":11.5, "y":4, "w":1.25},
77 {"label":"Alt", "x":12.75, "y":4, "w":1.25},
78 {"label":"\u2190", "x":14.25, "y":4.25},
79 {"label":"\u2193", "x":15.25, "y":4.25},
80 {"label":"\u2192", "x":16.25, "y":4.25}]
81 }
82 }
83} \ No newline at end of file
diff --git a/keyboards/nknl7jp/keymaps/default/config.h b/keyboards/nknl7jp/keymaps/default/config.h
new file mode 100644
index 000000000..fd96baa81
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/default/config.h
@@ -0,0 +1,22 @@
1/* Copyright 2021 Salicylic_acid3
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/* Select hand configuration */
20
21#define TAPPING_FORCE_HOLD
22#define TAPPING_TERM 180
diff --git a/keyboards/nknl7jp/keymaps/default/keymap.c b/keyboards/nknl7jp/keymaps/default/keymap.c
new file mode 100644
index 000000000..0f90eb883
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/default/keymap.c
@@ -0,0 +1,59 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19#include "keymap_jp.h"
20
21// Each layer gets a name for readability, which is then used in the keymap matrix below.
22// The underscores don't mean anything - you can have a layer called STUFF or any other name.
23// Layer names don't all need to be of the same length, obviously, and you can also skip them
24// entirely and just use numbers.
25enum layer_number {
26 _QWERTY = 0,
27 _FN,
28};
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [_QWERTY] = LAYOUT(
32 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
33 KC_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_DEL,
34 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
35 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_PGUP,
36 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
37LT(_FN,KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_PGDN,
38 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
39 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP,
40 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
41 KC_LCTRL, KC_LGUI, KC_LALT, KC_MHEN, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_HENK, KC_KANA, KC_APP, KC_LEFT,KC_DOWN, KC_RGHT
42 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
43 ),
44
45 [_FN] = LAYOUT(
46 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
47 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, _______, _______, _______,
48 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
51 MO(_FN), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
54 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
55 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
56 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
57 )
58};
59
diff --git a/keyboards/nknl7jp/keymaps/salicylic/config.h b/keyboards/nknl7jp/keymaps/salicylic/config.h
new file mode 100644
index 000000000..653695d62
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/salicylic/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2021 Salicylic_acid3
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/* Select hand configuration */
20
21#define TAPPING_FORCE_HOLD
22#define TAPPING_TERM 180
23#define UNICODE_SELECTED_MODES UC_WINC
diff --git a/keyboards/nknl7jp/keymaps/salicylic/keymap.c b/keyboards/nknl7jp/keymaps/salicylic/keymap.c
new file mode 100644
index 000000000..2eaf18566
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/salicylic/keymap.c
@@ -0,0 +1,145 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19#include "keymap_jp.h"
20
21
22
23// Each layer gets a name for readability, which is then used in the keymap matrix below.
24// The underscores don't mean anything - you can have a layer called STUFF or any other name.
25// Layer names don't all need to be of the same length, obviously, and you can also skip them
26// entirely and just use numbers.
27enum layer_number {
28 _QWERTY = 0,
29 _LOWER,
30 _RAISE,
31 _ADJUST,
32};
33
34enum custom_keycodes {
35 RGB_RST = SAFE_RANGE
36};
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [_QWERTY] = LAYOUT(
40 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
41 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_DEL,
42 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
43 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_PGUP,
44 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
45 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_MINS, JP_BSLS, JP_RBRC, KC_PGDN,
46 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
47 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP,
48 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
49 KC_ZKHK, KC_LGUI, KC_LALT, KC_MHEN,LT(_LOWER,KC_ENT),KC_BSPC,KC_DEL,LT(_RAISE,KC_SPC), KC_HENK,KC_RALT, KC_APP, KC_LEFT, KC_DOWN, KC_RGHT
50 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
51 ),
52
53 [_LOWER] = LAYOUT(
54 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
55 _______, 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_PSCR,
56 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
57 JP_DQUO, JP_EXLM, JP_QUES, JP_LBRC, JP_RBRC, JP_TILD, KC_P6, KC_P7, KC_P8, KC_P9, JP_ASTR, JP_SLSH, _______, _______, LALT(KC_PSCR),
58 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
59 JP_QUOT, JP_HASH, JP_DQT, JP_LPRN, JP_RPRN, JP_AT, XXXXXXX, KC_P4, KC_P5, KC_P6, JP_MINS, JP_EQL, _______, _______,
60 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
61 JP_CIRC, JP_PERC, JP_AMPR, JP_SCLN, JP_COLN, JP_PIPE, KC_P0, KC_P1, KC_P2, KC_P3, JP_PLUS, _______, _______, _______,
62 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
63 _______, _______, _______, _______,MO(_LOWER),_______, _______, MO(_RAISE),JP_DOT, JP_DOT, _______, _______, _______, _______
64 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
65 ),
66
67 [_RAISE] = LAYOUT(
68 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
69 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
70 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
71 KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, XXXXXXX, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, _______,
72 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
73LCTL_T(KC_F11),XXXXXXX, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, KC_LEFT, KC_DOWN,KC_RIGHT, XXXXXXX, XXXXXXX, _______, _______,
74 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
75SFT_T(KC_F12), KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, _______,
76 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
77 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
78 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
79 ),
80
81 [_ADJUST] = LAYOUT( /* Base */
82 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
83 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______,
84 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
85 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RST, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
86 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
87 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, RGB_MOD, XXXXXXX,LCA(KC_DEL),LALT(KC_PSCR),KC_PSCR,_______, _______,
88 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
89 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_VAD, RGB_VAI, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______,
90 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
91 XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, RESET, RESET, _______, _______, _______, _______, _______, _______, _______
92 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
93 )
94};
95
96//A description for expressing the layer position in LED mode.
97layer_state_t layer_state_set_user(layer_state_t state) {
98 state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
99#ifdef RGBLIGHT_ENABLE
100 switch (get_highest_layer(state)) {
101 case _LOWER:
102 rgblight_sethsv_at(HSV_BLUE, 0);
103 break;
104 case _RAISE:
105 rgblight_sethsv_at(HSV_RED, 0);
106 break;
107 case _ADJUST:
108 rgblight_sethsv_at(HSV_PURPLE, 0);
109 break;
110 default: // for any other layers, or the default layer
111 rgblight_sethsv_at( 0, 0, 0, 0);
112 break;
113 }
114 rgblight_set_effect_range( 1, 11);
115#endif
116return state;
117}
118
119uint8_t RGB_current_mode;
120bool process_record_user(uint16_t keycode, keyrecord_t *record) {
121 bool result = false;
122 switch (keycode) {
123 #ifdef RGBLIGHT_ENABLE
124 case RGB_MOD:
125 if (record->event.pressed) {
126 rgblight_mode(RGB_current_mode);
127 rgblight_step();
128 RGB_current_mode = rgblight_get_mode();
129 }
130 break;
131 case RGB_RST:
132 if (record->event.pressed) {
133 eeconfig_update_rgblight_default();
134 rgblight_enable();
135 RGB_current_mode = rgblight_get_mode();
136 }
137 break;
138 #endif
139 default:
140 result = true;
141 break;
142 }
143
144 return result;
145}
diff --git a/keyboards/nknl7jp/keymaps/via/config.h b/keyboards/nknl7jp/keymaps/via/config.h
new file mode 100644
index 000000000..fd96baa81
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/via/config.h
@@ -0,0 +1,22 @@
1/* Copyright 2021 Salicylic_acid3
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/* Select hand configuration */
20
21#define TAPPING_FORCE_HOLD
22#define TAPPING_TERM 180
diff --git a/keyboards/nknl7jp/keymaps/via/keymap.c b/keyboards/nknl7jp/keymaps/via/keymap.c
new file mode 100644
index 000000000..660fb2a15
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/via/keymap.c
@@ -0,0 +1,84 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19#include "keymap_jp.h"
20
21extern uint8_t is_master;
22
23// Each layer gets a name for readability, which is then used in the keymap matrix below.
24// The underscores don't mean anything - you can have a layer called STUFF or any other name.
25// Layer names don't all need to be of the same length, obviously, and you can also skip them
26// entirely and just use numbers.
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29 [0] = LAYOUT(
30 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
31 KC_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_DEL,
32 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
33 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_PGUP,
34 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
35LT(1,KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_PGDN,
36 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
37 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP,
38 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
39 KC_LCTRL, KC_LGUI, KC_LALT, KC_MHEN, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_HENK, KC_KANA, KC_APP, KC_LEFT,KC_DOWN, KC_RGHT
40 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
41 ),
42
43 [1] = LAYOUT(
44 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
45 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, _______, _______, _______,
46 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
49 MO(1), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
54 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
55 ),
56
57 [2] = LAYOUT(
58 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
59 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
60 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
62 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
63 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
64 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
66 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
67 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
68 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
69 ),
70
71 [3] = LAYOUT(
72 //,-----------------------------------------------------| |--------------------------------------------------------------------------------.
73 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
74 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
75 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
76 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
77 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
78 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
79 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
80 //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------+--------+--------|
81 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
82 //|-----------------------------------------------------| |--------------------------------------------------------------------------------'
83 )
84};
diff --git a/keyboards/nknl7jp/keymaps/via/rules.mk b/keyboards/nknl7jp/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/nknl7jp/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/nknl7jp/nknl7jp.c b/keyboards/nknl7jp/nknl7jp.c
new file mode 100644
index 000000000..0395a3b67
--- /dev/null
+++ b/keyboards/nknl7jp/nknl7jp.c
@@ -0,0 +1,18 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include "nknl7jp.h"
diff --git a/keyboards/nknl7jp/nknl7jp.h b/keyboards/nknl7jp/nknl7jp.h
new file mode 100644
index 000000000..3984ac778
--- /dev/null
+++ b/keyboards/nknl7jp/nknl7jp.h
@@ -0,0 +1,54 @@
1/*
2Copyright 2021 Salicylic_Acid
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "quantum.h"
21
22/*
23 * ,------------------------------------ ------------------------------------------------------------.
24 * | L00 | L01 | L02 | L03 | L04 | L05 | | R00 | R01 | R02 | R03 | R04 | R05 | R06 | R07 | R08 | R18 |
25 * |---------------------------------------------------------------------------------------------------+
26 * | L10 | L11 | L12 | L13 | L14 | L15 | | R10 | R11 | R12 | R13 | R14 | R15 | R16 | R17 | R28 |
27 * |---------------------------------------- ---------------------------------------------------------+
28 * | L20 | L21 | L22 | L23 | L24 | L25 | | R20 | R21 | R22 | R23 | R24 | R25 | R26 | R27 |
29 * |---------------------------------------------------------------------------------------------------+
30 * | L30 | L31 | L32 | L33 | L34 | L35 | | R30 | R31 | R32 | R33 | R34 | R35 | R36 | R37|
31 * |------------------------------------------- -----------------------------------------------------+
32 * | L40 | L41 | L42 | L43 | L44 | L45 | | R40 | R41 | R42 | R43 | R44 | R47 | R38 | R48 |
33 * |---------------------------------------- --------------------------------------------------------'
34 */
35
36#define LAYOUT( \
37 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, R06, R07, R08, R18, \
38 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R17, R28, \
39 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, R26, R27, \
40 L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, R36, R37, \
41 L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R47, R38, R48 \
42 ) \
43 { \
44 { L00, L01, L02, L03, L04, L05, KC_NO, KC_NO, KC_NO }, \
45 { L10, L11, L12, L13, L14, L15, KC_NO, KC_NO, KC_NO }, \
46 { L20, L21, L22, L23, L24, L25, KC_NO, KC_NO, KC_NO }, \
47 { L30, L31, L32, L33, L34, L35, KC_NO, KC_NO, KC_NO }, \
48 { L40, L41, L42, L43, L44, L45, KC_NO, KC_NO, KC_NO }, \
49 { R00, R01, R02, R03, R04, R05, R06, R07, R08 }, \
50 { R10, R11, R12, R13, R14, R15, R16, R17, R18 }, \
51 { R20, R21, R22, R23, R24, R25, R26, R27, R28 }, \
52 { R30, R31, R32, R33, R34, R35, R36, R37, R38 }, \
53 { R40, R41, R42, R43, R44, KC_NO, KC_NO, R47, R48 } \
54 }
diff --git a/keyboards/nknl7jp/readme.md b/keyboards/nknl7jp/readme.md
new file mode 100644
index 000000000..9d0ccba4e
--- /dev/null
+++ b/keyboards/nknl7jp/readme.md
@@ -0,0 +1,17 @@
1# nknl7jp
2
3![nknl7jp](https://cdn-ak.f.st-hatena.com/images/fotolife/S/Salicylic_acid3/20201113/20201113010013.png)
4
5This is 73 keys Custom keyboard.
6
7* Keyboard Maintainer: [Salicylic_acid3](https://github.com/Salicylic-acid3)
8* Hardware Supported: nknl7jp PCB, Pro Micro
9* Hardware Availability: [PCB & Case Data](https://github.com/Salicylic-acid3/PCB_Data), [Booth Shop](https://salicylic-acid3.booth.pm/items/2672651)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make nknl7jp:default
14
15See 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).
16
17[Build guide](https://salicylic-acid3.hatenablog.com/entry/nknl7-build-guide)
diff --git a/keyboards/nknl7jp/rules.mk b/keyboards/nknl7jp/rules.mk
new file mode 100644
index 000000000..abffa14b3
--- /dev/null
+++ b/keyboards/nknl7jp/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
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 = no # 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
23
24SPLIT_KEYBOARD = yes