diff options
author | Ladniy <32298096+Ladniy@users.noreply.github.com> | 2020-07-28 08:48:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 17:48:48 -0700 |
commit | 84cd07b0d3409d1bbb72691fd79c8a9a885363a0 (patch) | |
tree | 40328fd3625287241e24f2afd1382a513cc026fa /keyboards/jiran/keymaps | |
parent | 6104609afa666750be49ccfa8df8d3ad87fb4f32 (diff) |
[Keyboard] Jiran keyboard (#9628)
* Add jirand folder from local catalog
* Add controller into readme
* Replace image of PCB
* Create rev2 folder for RGB version
* Rename keymap folder
* Add new rev for RGB light version
* Change some keycodes for RGB light
* Remove some unnecessary code
* Add via keymap
* Activate RBG light support
* Update some info
* Update layout image link
* Update keyboards/jiran/config.h
* Update keyboards/jiran/keymaps/via/config.h
* Update keyboards/jiran/keymaps/default/rules.mk
* Update keyboards/jiran/keymaps/default/readme.md
* Update keyboards/jiran/keymaps/default/keymap.c
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/config.h
* Update keyboards/jiran/rev2/config.h
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/rev1.c
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Some fix
* Update keyboards/jiran/keymaps/default/keymap.c
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev2/config.h
* Fix default keymap error
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/rules.mk
* Update keyboards/jiran/rev1/rules.mk
* Update keyboards/jiran/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev2/config.h
* Delete by request
* Update keyboards/jiran/config.h
* Update keyboards/jiran/keymaps/via/keymap.c
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Change some info by request
* Update keyboards/jiran/rev1/rev1.h
* Remove by request
Diffstat (limited to 'keyboards/jiran/keymaps')
-rw-r--r-- | keyboards/jiran/keymaps/default/config.h | 21 | ||||
-rw-r--r-- | keyboards/jiran/keymaps/default/keymap.c | 47 | ||||
-rw-r--r-- | keyboards/jiran/keymaps/default/readme.md | 6 | ||||
-rw-r--r-- | keyboards/jiran/keymaps/via/keymap.c | 61 | ||||
-rw-r--r-- | keyboards/jiran/keymaps/via/rules.mk | 2 |
5 files changed, 137 insertions, 0 deletions
diff --git a/keyboards/jiran/keymaps/default/config.h b/keyboards/jiran/keymaps/default/config.h new file mode 100644 index 0000000000..b1020ed78c --- /dev/null +++ b/keyboards/jiran/keymaps/default/config.h @@ -0,0 +1,21 @@ +/* +Copyright 2017 Danny Nguyen <danny@keeb.io> + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +// #define USE_I2C +#define EE_HANDS
\ No newline at end of file diff --git a/keyboards/jiran/keymaps/default/keymap.c b/keyboards/jiran/keymaps/default/keymap.c new file mode 100644 index 0000000000..586cd67a93 --- /dev/null +++ b/keyboards/jiran/keymaps/default/keymap.c @@ -0,0 +1,47 @@ +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum jiran_layers { + _QWERTY, + _LOWER +}; + +#define KC_RBGI RGUI_T(KC_RBRC) +#define KC_BSCT RCTL_T(KC_BSLS) +#define KC_QTSH RSFT_T(KC_QUOT) +#define KC_SLSF RSFT_T(KC_LSCR) +#define KC_NLCT RCTL_T(KC_LNUM) +#define KC_ETAL RALT_T(KC_ENT) +#define LOWER MO(_LOWER) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [_QWERTY] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + KC_LGUI, 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_RBGI, + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QTSH, + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSCT, + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┴────────┴────────┘ + LOWER, KC_SPC, KC_LALT, KC_ETAL, KC_BSPC, LOWER + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + + [_LOWER] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_EQL, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + KC_F11, KC_TAB, RGB_HUI, KC_HOME, RESET, RGB_SAI, RGB_VAI, KC_VOLU, KC_PGUP, RESET, KC_HOME, KC_INS, KC_DEL, KC_F12, + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + KC_LSFT, RGB_HUD, KC_LEFT, KC_UP, KC_RGHT, RGB_VAD, KC_MUTE, KC_LEFT, KC_UP, KC_RGHT, KC_PSCR, KC_SLSF, + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + KC_LCTL, RGB_M_B, KC_END, KC_DOWN, RGB_SAD, RGB_TOG, KC_VOLD, KC_PGDN, KC_DOWN, KC_END, KC_PAUS, KC_NLCT, + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┴────────┘ + KC_TRNS, KC_SPC, KC_LALT, KC_ETAL, KC_BSPC, KC_TRNS + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + +}; diff --git a/keyboards/jiran/keymaps/default/readme.md b/keyboards/jiran/keymaps/default/readme.md new file mode 100644 index 0000000000..8c6bdb272b --- /dev/null +++ b/keyboards/jiran/keymaps/default/readme.md @@ -0,0 +1,6 @@ +# Default Jiran Layout + +![Jiran layout Image](https://i.imgur.com/xxmekHU.png) + +This is the default layout that comes with every Jiran from the buy groups. +Layout contains all the keys with a standard 104 keys keyboard. diff --git a/keyboards/jiran/keymaps/via/keymap.c b/keyboards/jiran/keymaps/via/keymap.c new file mode 100644 index 0000000000..710cb81ec4 --- /dev/null +++ b/keyboards/jiran/keymaps/via/keymap.c @@ -0,0 +1,61 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + KC_LGUI, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, RGUI_T(KC_RBRC), + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, RSFT_T(KC_QUOT), + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RCTL_T(KC_BSLS), + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┴────────┴────────┘ + MO(1), KC_SPC, KC_LALT, RALT_T(KC_ENT), KC_BSPC, MO(1) + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + + [1] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_EQL, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + KC_F11, KC_TAB, RGB_HUI, KC_HOME, RESET, RGB_SAI, RGB_VAI, KC_VOLU, KC_PGUP, RESET, KC_HOME, KC_INS, KC_DEL, KC_F12, + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + KC_LSFT, RGB_HUD, KC_LEFT, KC_UP, KC_RGHT, RGB_VAD, KC_MUTE, KC_LEFT, KC_UP, KC_RGHT, KC_PSCR, RSFT_T(KC_LSCR), + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + KC_LCTL, RGB_M_B, KC_END, KC_DOWN, RGB_SAD, RGB_TOG, KC_VOLD, KC_PGDN, KC_DOWN, KC_END, KC_PAUS, RCTL_T(KC_LNUM), + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┴────────┘ + KC_TRNS, KC_SPC, KC_LALT, RALT_T(KC_ENT), KC_BSPC, KC_TRNS + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + + [2] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┴────────┘ + _______, _______, _______, _______, _______, _______ + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + + [3] = LAYOUT( + // ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // └────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┘ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + // └────────┴────────┴────────┴────────┼────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┴────────┘ + _______, _______, _______, _______, _______, _______ + // └────────┴────────┴────────┘ └────────┴────────┴────────┘ + ), + +}; diff --git a/keyboards/jiran/keymaps/via/rules.mk b/keyboards/jiran/keymaps/via/rules.mk new file mode 100644 index 0000000000..fa239f1d54 --- /dev/null +++ b/keyboards/jiran/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +EXTRAKEY_ENABLE = yes
\ No newline at end of file |