diff options
| author | Jean Potier <jpotier@users.noreply.github.com> | 2020-10-01 07:14:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-30 21:14:05 -0700 |
| commit | 272b3309dd4121b49bc41e3c0213111aaf4962d7 (patch) | |
| tree | 6c9de6716824893719b258afa6f39d437c4da46e | |
| parent | 11c308d436180974b7719ce78cdffdd83a1302c0 (diff) | |
| download | qmk_firmware-272b3309dd4121b49bc41e3c0213111aaf4962d7.tar.gz qmk_firmware-272b3309dd4121b49bc41e3c0213111aaf4962d7.zip | |
[Keymap] samae keymap for RGBKB Zen rev1 (#10350)
* Add samae's keymap to zen rev1
* Docs update
* Less animations
* A few cleanups
* Update keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c
* Update keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c
* Update keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c
* Update keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c
* Review fix: add copyright statement
| -rw-r--r-- | keyboards/rgbkb/zen/rev1/keymaps/samae/config.h | 41 | ||||
| -rw-r--r-- | keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c | 79 | ||||
| -rw-r--r-- | keyboards/rgbkb/zen/rev1/keymaps/samae/rules.mk | 1 |
3 files changed, 121 insertions, 0 deletions
diff --git a/keyboards/rgbkb/zen/rev1/keymaps/samae/config.h b/keyboards/rgbkb/zen/rev1/keymaps/samae/config.h new file mode 100644 index 000000000..d7b37d525 --- /dev/null +++ b/keyboards/rgbkb/zen/rev1/keymaps/samae/config.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@hexwire.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* Use I2C or Serial, not both */ | ||
| 23 | |||
| 24 | #define USE_SERIAL | ||
| 25 | // #define USE_I2C | ||
| 26 | |||
| 27 | /* Select hand configuration */ | ||
| 28 | |||
| 29 | // #define MASTER_LEFT | ||
| 30 | // #define MASTER_RIGHT | ||
| 31 | #define EE_HANDS | ||
| 32 | |||
| 33 | #undef RGBLED_NUM | ||
| 34 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 35 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 36 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 37 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 38 | #define RGBLED_NUM 16 | ||
| 39 | #define RGBLIGHT_HUE_STEP 4 | ||
| 40 | #define RGBLIGHT_SAT_STEP 4 | ||
| 41 | #define RGBLIGHT_VAL_STEP 8 | ||
diff --git a/keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c b/keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c new file mode 100644 index 000000000..673ea4054 --- /dev/null +++ b/keyboards/rgbkb/zen/rev1/keymaps/samae/keymap.c | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | /* Copyright 2020 Martin J. Potier | ||
| 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 3 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 <https://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 20 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 21 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 22 | // entirely and just use numbers. | ||
| 23 | enum layer_number { | ||
| 24 | _QWERTY = 0, | ||
| 25 | _NAV | ||
| 26 | }; | ||
| 27 | |||
| 28 | |||
| 29 | enum custom_keycodes { | ||
| 30 | QWERTY = SAFE_RANGE, | ||
| 31 | NAV, | ||
| 32 | |||
| 33 | }; | ||
| 34 | |||
| 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 36 | |||
| 37 | /* Qwerty | ||
| 38 | * ,-----------------------------------------. .-----------------------------------------. | ||
| 39 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 40 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 41 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ | | ||
| 42 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 43 | * |DELETE| A | S | D | F | G | | H | J | K | L | ; | " | | ||
| 44 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 45 | * | Shift| Z | X | C | V | B | | N | M | , | . | / |RGBMOD| | ||
| 46 | * |------+------+------+------+------+------+------. .--------+------+------+------+------+------+------| | ||
| 47 | * | Ctrl | GUI | Alt |RGBTOG| NAV |Space | ESC | |Enter|Space/NAV| AltGr| NAV | | - | = | | ||
| 48 | * `------------------------------------------------' '--------------------------------------------------' | ||
| 49 | */ | ||
| 50 | [_QWERTY] = LAYOUT( | ||
| 51 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 52 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 53 | KC_DEL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 54 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RGB_MOD, | ||
| 55 | KC_LCTL, KC_LGUI, KC_LALT, RGB_TOG, MO(_NAV), KC_SPC, KC_GESC, KC_ENT, LT(_NAV, KC_SPACE), KC_RALT, MO(_NAV), _______, KC_MINS, KC_EQL | ||
| 56 | ), | ||
| 57 | |||
| 58 | /* NAV | ||
| 59 | * ,-----------------------------------------. .-----------------------------------------. | ||
| 60 | * | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 61 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 62 | * | |RGBSAI|RGBVAI|RGBSAD| | [ | | ] | Pgup | Up | Pgdn |Insert| Home | | ||
| 63 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 64 | * | |RGBHUD|RGBVAD|RGBHUI| | | | | Left | Down | Right|Delete| End | | ||
| 65 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 66 | * |Shift | | | | | | | | | | Pause| Back | Next | | ||
| 67 | * |------+------+------+------+------+------+------. .------+------+------+------+------+------+------| | ||
| 68 | * | Ctrl | GUI | Alt |RGBMOD| | | | | RESET| | | | Mute | VOLUP| VOLDN| | ||
| 69 | * `------------------------------------------------' '------------------------------------------------' | ||
| 70 | */ | ||
| 71 | [_NAV] = LAYOUT( | ||
| 72 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 73 | _______, RGB_SAI, RGB_VAI, RGB_SAD, _______, KC_LBRC, KC_RBRC, KC_PGUP, KC_UP, KC_PGDN, KC_INS, KC_HOME, | ||
| 74 | _______, RGB_HUD, RGB_VAD, RGB_HUI, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL, KC_END, | ||
| 75 | KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MPRV, KC_MNXT, | ||
| 76 | KC_LCTL, KC_LGUI, KC_LALT, RGB_MOD, _______, _______, _______, RESET, _______, _______, _______, KC_MUTE, KC_VOLU, KC_VOLD | ||
| 77 | ), | ||
| 78 | |||
| 79 | }; | ||
diff --git a/keyboards/rgbkb/zen/rev1/keymaps/samae/rules.mk b/keyboards/rgbkb/zen/rev1/keymaps/samae/rules.mk new file mode 100644 index 000000000..1e3cebb14 --- /dev/null +++ b/keyboards/rgbkb/zen/rev1/keymaps/samae/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| RGBLIGHT_ENABLE = yes | |||
