aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-01-06 05:53:27 +0000
committerQMK Bot <hello@qmk.fm>2021-01-06 05:53:27 +0000
commit531d30575f1a50a7db76b497fde176448f49cfae (patch)
treec99d202702b6b116dadec02310ab30aa46743b98
parent7389b10867b739302749d6570ff9a12961388f92 (diff)
parent11599bea934749d6894b403ed75951861917388a (diff)
downloadqmk_firmware-531d30575f1a50a7db76b497fde176448f49cfae.tar.gz
qmk_firmware-531d30575f1a50a7db76b497fde176448f49cfae.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/jian/keymaps/left_hand/config.h22
-rw-r--r--keyboards/jian/keymaps/left_hand/keymap.c71
-rw-r--r--keyboards/jian/keymaps/left_hand/rules.mk2
-rw-r--r--keyboards/jian/readme.md1
-rw-r--r--keyboards/jian/rev2/readme.md1
-rw-r--r--keyboards/jian/rev2/rev2.h19
6 files changed, 116 insertions, 0 deletions
diff --git a/keyboards/jian/keymaps/left_hand/config.h b/keyboards/jian/keymaps/left_hand/config.h
new file mode 100644
index 000000000..4d9cb17ca
--- /dev/null
+++ b/keyboards/jian/keymaps/left_hand/config.h
@@ -0,0 +1,22 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20#pragma once
21
22#define IGNORE_MOD_TAP_INTERRUPT
diff --git a/keyboards/jian/keymaps/left_hand/keymap.c b/keyboards/jian/keymaps/left_hand/keymap.c
new file mode 100644
index 000000000..d2518a253
--- /dev/null
+++ b/keyboards/jian/keymaps/left_hand/keymap.c
@@ -0,0 +1,71 @@
1 /* Copyright 2020 KGOH
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 QMK_KEYBOARD_H
17
18enum jian_layers {
19 _DFLT_L,
20 _DFLT_R,
21 _RAIS_L,
22 _RAIS_R,
23 _LOWR_L,
24 _LOWR_R,
25 _ADJUST
26};
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29[_DFLT_L] = LAYOUT_symmetric_left(
30 KC_LSFT, LGUI_T(KC_GRV), KC_Q, KC_W, KC_E, KC_R, KC_T,
31 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G,
32 KC_LALT, KC_Z, KC_X, KC_C, KC_V, KC_B,
33 LT(_RAIS_L, KC_BSPC), LT(_DFLT_R, KC_SPC), LT(_LOWR_L, KC_ENT)
34),
35[_DFLT_R] = LAYOUT_symmetric_right(
36 KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,
37 KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
38 KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS,
39 LT(_LOWR_R, KC_ESC), _______, LT(_RAIS_R, KC_DEL)
40),
41[_RAIS_L] = LAYOUT_symmetric_left(
42 _______, LGUI_T(KC_CAPS), KC_SLCK, KC_HOME, KC_PSCR, KC_PGUP, KC_VOLU,
43 LCTL_T(KC_APP), KC_INS, KC_LEFT, KC_UP, KC_RGHT, KC_MUTE,
44 _______, KC_PAUS, KC_END, KC_DOWN, KC_PGDN, KC_VOLD,
45 _______, LT(_RAIS_R, KC_TAB) , LT(_ADJUST, KC_ESC)
46),
47[_RAIS_R] = LAYOUT_symmetric_left(
48 KC_RSFT, KC_RGUI, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10,
49 KC_RCTL, XXXXXXX, KC_F4, KC_F5, KC_F6, KC_F11,
50 KC_LALT, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F12,
51 LT(_ADJUST, KC_DEL), _______, _______
52),
53[_LOWR_L] = LAYOUT_symmetric_left(
54 _______, _______, XXXXXXX, KC_7, KC_8, KC_9, KC_0,
55 _______, KC_GRV, KC_4, KC_5, KC_6, KC_MINS,
56 _______, KC_0, KC_1, KC_2, KC_3, KC_EQL,
57 LT(_ADJUST, KC_DEL), LT(_LOWR_R, KC_TAB), _______
58),
59[_LOWR_R] = LAYOUT_symmetric_left(
60 _______, _______, XXXXXXX, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
61 _______, KC_TILD, KC_DLR, KC_PERC, KC_CIRC, KC_UNDS,
62 _______, KC_LPRN, KC_EXLM, KC_AT, KC_HASH, KC_PLUS,
63 _______, _______, LT(_ADJUST, KC_ESC)
64),
65[_ADJUST] = LAYOUT_symmetric_left(
66 RESET, DEBUG, XXXXXXX, BL_INC, RGB_VAI, RGB_HUD, RGB_HUI,
67 XXXXXXX, XXXXXXX, BL_DEC, RGB_VAD, RGB_SAD, RGB_SAI,
68 XXXXXXX, BL_BRTG, BL_TOGG, RGB_TOG, RGB_RMOD,RGB_MOD,
69 _______, _______, _______
70)
71};
diff --git a/keyboards/jian/keymaps/left_hand/rules.mk b/keyboards/jian/keymaps/left_hand/rules.mk
new file mode 100644
index 000000000..7756f0835
--- /dev/null
+++ b/keyboards/jian/keymaps/left_hand/rules.mk
@@ -0,0 +1,2 @@
1AUTO_SHIFT_ENABLE = yes
2EXTRAKEY_ENABLE = yes
diff --git a/keyboards/jian/readme.md b/keyboards/jian/readme.md
index 7258e31c1..cb68cfdd1 100644
--- a/keyboards/jian/readme.md
+++ b/keyboards/jian/readme.md
@@ -6,6 +6,7 @@
6You can assemble the keyboard without a mounting plate. 6You can assemble the keyboard without a mounting plate.
7Jian also supports RGB LED underglow (with a strip like WS2812B) and single color in-switch LED backlight. 7Jian also supports RGB LED underglow (with a strip like WS2812B) and single color in-switch LED backlight.
8Each half can work standalone. 8Each half can work standalone.
9Last GB version is the rev2.
9 10
10* Keyboard Maintainer: [KGOH](https://github.com/KGOH) 11* Keyboard Maintainer: [KGOH](https://github.com/KGOH)
11* Hardware Supported: Jian PCB rev1, rev2, Pro Micro 12* Hardware Supported: Jian PCB rev1, rev2, Pro Micro
diff --git a/keyboards/jian/rev2/readme.md b/keyboards/jian/rev2/readme.md
new file mode 100644
index 000000000..d02c35e96
--- /dev/null
+++ b/keyboards/jian/rev2/readme.md
@@ -0,0 +1 @@
This is GB revision
diff --git a/keyboards/jian/rev2/rev2.h b/keyboards/jian/rev2/rev2.h
index 9dfb7240b..d71fc8495 100644
--- a/keyboards/jian/rev2/rev2.h
+++ b/keyboards/jian/rev2/rev2.h
@@ -37,3 +37,22 @@
37 {K20, K21, K22, K23, K24, K25 }, \ 37 {K20, K21, K22, K23, K24, K25 }, \
38 {XXX, XXX, K32, K33, K34, K35 } \ 38 {XXX, XXX, K32, K33, K34, K35 } \
39} 39}
40
41#define LAYOUT_symmetric_left LAYOUT_symmetric
42
43#define LAYOUT_symmetric_right( \
44 K04, K03, K02, K12, K01, K00, K20, \
45 K05, K14, K13, K22, K11, K10, \
46 K15, K24, K23, K33, K32, K21, \
47 K35, K25, K34 \
48) \
49{ \
50 {K00, K01, K02, K03, K04, K05 }, \
51 {K10, K11, K12, K13, K14, K15 }, \
52 {K20, K21, K22, K23, K24, K25 }, \
53 {XXX, XXX, K32, K33, K34, K35 }, \
54 {K00, K01, K02, K03, K04, K05 }, \
55 {K10, K11, K12, K13, K14, K15 }, \
56 {K20, K21, K22, K23, K24, K25 }, \
57 {XXX, XXX, K32, K33, K34, K35 } \
58}