diff options
| author | Ben <BenRoe@users.noreply.github.com> | 2024-02-01 03:21:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-31 18:21:59 -0800 |
| commit | 33a3cd26ab88415e3085a2b2cdf9100488db1967 (patch) | |
| tree | bfb9770aa2819f6f6e67877b04933aa2047ad620 | |
| parent | f3d3b16ebbca791a152b3f82d96f1ad9e964d311 (diff) | |
[Keyboard] Add Kimiko Rev2 (#21719)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
Co-authored-by: Ex3c4Def <Joe_No@gmx.net>
Co-authored-by: Ben Roe <ben@MacBookzPro-M2.lan>
Co-authored-by: Ben Roe <ben@MacBook-Pro-von-Ben.local>
| -rw-r--r-- | keyboards/keycapsss/kimiko/glcdfont.c (renamed from keyboards/keycapsss/kimiko/keymaps/oriaj3/glcdfont.c) | 0 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/info.json | 9 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h | 74 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/keymaps/oriaj3/keymap.c | 413 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/keymaps/oriaj3/rules.mk | 19 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/kimiko.c | 11 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/post_config.h | 25 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/readme.md | 54 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/info.json | 199 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/keymaps/default/config.h | 37 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/keymaps/default/keymap.c | 122 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/keymaps/default/rules.mk | 8 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/rev2.c | 209 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rev2/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/keycapsss/kimiko/rules.mk | 16 |
15 files changed, 664 insertions, 533 deletions
diff --git a/keyboards/keycapsss/kimiko/keymaps/oriaj3/glcdfont.c b/keyboards/keycapsss/kimiko/glcdfont.c index ff2f3bdcd5..ff2f3bdcd5 100644 --- a/keyboards/keycapsss/kimiko/keymaps/oriaj3/glcdfont.c +++ b/keyboards/keycapsss/kimiko/glcdfont.c | |||
diff --git a/keyboards/keycapsss/kimiko/info.json b/keyboards/keycapsss/kimiko/info.json new file mode 100644 index 0000000000..a962104c56 --- /dev/null +++ b/keyboards/keycapsss/kimiko/info.json | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | { | ||
| 2 | "features": { | ||
| 3 | "mousekey": true, | ||
| 4 | "extrakey": true | ||
| 5 | }, | ||
| 6 | "split": { | ||
| 7 | "enabled": true | ||
| 8 | } | ||
| 9 | } | ||
diff --git a/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h b/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h deleted file mode 100644 index 2fd384b986..0000000000 --- a/keyboards/keycapsss/kimiko/keymaps/oriaj3/config.h +++ /dev/null | |||
| @@ -1,74 +0,0 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * Copyright 2020 @ben_roe (keycapsss.com) | ||
| 3 | * Copyright 2022 @oriaj3 | ||
| 4 | * | ||
| 5 | * This program is free software: you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation, either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | /* Select hand configuration */ | ||
| 22 | #define MASTER_LEFT | ||
| 23 | // #define MASTER_RIGHT | ||
| 24 | // #define EE_HANDS | ||
| 25 | |||
| 26 | #define OLED_FONT_H "keyboards/keycapsss/kimiko/keymaps/rgb_matrix/glcdfont.c" | ||
| 27 | // #define OLED_FONT_WIDTH 5 | ||
| 28 | // #define OLED_FONT_HEIGHT 7 | ||
| 29 | |||
| 30 | |||
| 31 | #ifdef RGB_MATRIX_ENABLE | ||
| 32 | |||
| 33 | // The pin connected to the data pin of the LEDs | ||
| 34 | #define WS2812_DI_PIN D3 | ||
| 35 | // The number of LEDs connected | ||
| 36 | #define RGB_MATRIX_LED_COUNT 60 | ||
| 37 | #define RGBLED_NUM 60 | ||
| 38 | #define RGB_MATRIX_SPLIT {30,30} | ||
| 39 | #define SPLIT_LAYER_STATE_ENABLE | ||
| 40 | #define SPLIT_TRANSPORT_MIRROR | ||
| 41 | |||
| 42 | |||
| 43 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | ||
| 44 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | ||
| 45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | ||
| 46 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 47 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | ||
| 48 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | ||
| 49 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 80 // limits maximum brightness of LEDs to 80 out of 255. Higher may cause the controller to crash. | ||
| 50 | # define RGB_MATRIX_HUE_STEP 8 | ||
| 51 | # define RGB_MATRIX_SAT_STEP 8 | ||
| 52 | # define RGB_MATRIX_VAL_STEP 8 | ||
| 53 | # define RGB_MATRIX_SPD_STEP 10 | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | // ENABLES EFFECTS. See alls the effects -> https://github.com/samhocevar-forks/qmk-firmware/blob/master/docs/feature_rgb_matrix.md#rgb-matrix-effects | ||
| 58 | # define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 50 | ||
| 59 | # define ENABLE_RGB_MATRIX_BAND_SPLIT | ||
| 60 | # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
| 61 | # define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
| 62 | # define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 63 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
| 64 | //# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 65 | //# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
| 66 | //# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
| 67 | //# define ENABLE_RGB_MATRIX_MULTISPLASH | ||
| 68 | //# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
| 69 | # define ENABLE_RGB_MATRIX_SPLASH | ||
| 70 | #endif | ||
| 71 | |||
| 72 | // If you are using an Elite C rev3 on the slave side, uncomment the lines below: | ||
| 73 | // #define SPLIT_USB_DETECT | ||
| 74 | // #define NO_USB_STARTUP_CHECK | ||
diff --git a/keyboards/keycapsss/kimiko/keymaps/oriaj3/keymap.c b/keyboards/keycapsss/kimiko/keymaps/oriaj3/keymap.c deleted file mode 100644 index 243a7d013d..0000000000 --- a/keyboards/keycapsss/kimiko/keymaps/oriaj3/keymap.c +++ /dev/null | |||
| @@ -1,413 +0,0 @@ | |||
| 1 | /* Copyright 2019 Leo Batyuk | ||
| 2 | * Copyright 2020 Drashna Jaelre <@drashna> | ||
| 3 | * Copyright 2020 @ben_roe (keycapsss.com) | ||
| 4 | * Copyright 2022 @oriaj3 | ||
| 5 | * | ||
| 6 | * This program is free software: you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation, either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include QMK_KEYBOARD_H | ||
| 21 | |||
| 22 | enum layers { | ||
| 23 | _QWERTY, | ||
| 24 | _LOWER, | ||
| 25 | _RAISE, | ||
| 26 | _ADJUST, | ||
| 27 | }; | ||
| 28 | |||
| 29 | #define RAISE MO(_RAISE) | ||
| 30 | #define LOWER MO(_LOWER) | ||
| 31 | |||
| 32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 33 | |||
| 34 | /* QWERTY | ||
| 35 | * ,--------------------------------------------. ,----------------------------------------------. | ||
| 36 | * | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | | ||
| 37 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 38 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | - | | ||
| 39 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 40 | * | LShift | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | | ||
| 41 | * |---------+------+------+------+------+------| [ | | ] |------+------+------+------+------+-----------| | ||
| 42 | * | LCTRL | Z | X | C | V | B |-------| |-------| N | M | , | . | / |RShift/Enter| | ||
| 43 | * `-------------------------------------------| / \ \-----------------------------------------------' | ||
| 44 | * | LCTRL| LGUI | LALT |LOWER| Space / \Enter \ |RAISE |BackSP| RGUI | RALT | | ||
| 45 | * `----------------------------------' '------------------------------------' | ||
| 46 | */ | ||
| 47 | |||
| 48 | [_QWERTY] = LAYOUT( | ||
| 49 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, | ||
| 50 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, | ||
| 51 | KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 52 | KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT), | ||
| 53 | KC_LCTL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_ENT, RAISE, KC_BSPC, KC_RGUI, KC_RALT | ||
| 54 | ), | ||
| 55 | /* LOWER | ||
| 56 | * ,-------------------------------------------. ,-----------------------------------------. | ||
| 57 | * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | | ||
| 58 | * |--------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 59 | * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | | ||
| 60 | * |--------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 61 | * | ` | ! | @ | # | $ | % |-------. ,-------| ^ | & | * | ( | ) | ~ | | ||
| 62 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+------| | ||
| 63 | * | | | | | | |-------| |-------| | _ | + | { | } | \ | | ||
| 64 | * `-------------------------------------------| / \ \-----------------------------------------------' | ||
| 65 | * | LCTRL| LGUI | LALT |LOWER| Space / \Enter \ |RAISE |BackSP| RGUI | RALT | | ||
| 66 | * `----------------------------------' '------------------------------------' | ||
| 67 | */ | ||
| 68 | |||
| 69 | [_LOWER] = LAYOUT( | ||
| 70 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 71 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F12, | ||
| 72 | KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TILD, | ||
| 73 | _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_BSLS, | ||
| 74 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 75 | ), | ||
| 76 | /* RAISE | ||
| 77 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 78 | * | | | | | | | | | | | | | | | ||
| 79 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 80 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | | ||
| 81 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 82 | * | F1 | F2 | F3 | F4 | F5 | F6 |-------. ,-------| | Left | Down | Up |Right | | | ||
| 83 | * |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------| | ||
| 84 | * | F7 | F8 | F9 | F10 | F11 | F12 |-------| |-------| + | - | = | [ | ] | \ | | ||
| 85 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 86 | * | LCTRL| LGUI | LALT |LOWER| Space / \Enter \ |RAISE |BackSP| RGUI | RALT | | ||
| 87 | * `----------------------------------' '------------------------------------' | ||
| 88 | */ | ||
| 89 | |||
| 90 | [_RAISE] = LAYOUT( | ||
| 91 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 92 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 93 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, | ||
| 94 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_PLUS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 95 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 96 | ), | ||
| 97 | /* ADJUST (Press LOWER and RAISE together) | ||
| 98 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 99 | * |QK_BOOT | | | | | | | | | | | | | | ||
| 100 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 101 | * |RGB ON| HUE+ | SAT+ | VAL+ | | | | PREV | PLAY | NEXT | | | | | ||
| 102 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 103 | * | MODE | HUE- | SAT- | VAL- | | |-------. ,-------| VOL+ | MUTE | VOL- | | | | | ||
| 104 | * |------+------+------+------+------+------| | | |------+------+------+------+------+------| | ||
| 105 | * | | | | | | |-------| |-------| | | | | | | | ||
| 106 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 107 | * |LCTRL| LGUI | LALT |LOWER| Space / \Enter \ |RAISE |BackSP| RGUI | RALT | | ||
| 108 | * `----------------------------------' '------------------------------------' | ||
| 109 | */ | ||
| 110 | |||
| 111 | [_ADJUST] = LAYOUT( | ||
| 112 | QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 113 | RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 114 | RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX, XXXXXXX, KC_VOLU, KC_MUTE, KC_VOLD, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 115 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 116 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 117 | ) | ||
| 118 | }; | ||
| 119 | |||
| 120 | |||
| 121 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 122 | state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); | ||
| 123 | return state; | ||
| 124 | } | ||
| 125 | |||
| 126 | #ifdef OLED_ENABLE | ||
| 127 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 128 | if (is_keyboard_master()) { | ||
| 129 | return OLED_ROTATION_270; | ||
| 130 | } else { | ||
| 131 | return OLED_ROTATION_270; | ||
| 132 | } | ||
| 133 | } | ||
| 134 | |||
| 135 | void render_space(void) { | ||
| 136 | oled_write_P(PSTR(" "), false); | ||
| 137 | } | ||
| 138 | |||
| 139 | void render_mod_status_gui_alt(uint8_t modifiers) { | ||
| 140 | static const char PROGMEM gui_off_1[] = {0x85, 0x86, 0}; | ||
| 141 | static const char PROGMEM gui_off_2[] = {0xa5, 0xa6, 0}; | ||
| 142 | static const char PROGMEM gui_on_1[] = {0x8d, 0x8e, 0}; | ||
| 143 | static const char PROGMEM gui_on_2[] = {0xad, 0xae, 0}; | ||
| 144 | |||
| 145 | static const char PROGMEM alt_off_1[] = {0x87, 0x88, 0}; | ||
| 146 | static const char PROGMEM alt_off_2[] = {0xa7, 0xa8, 0}; | ||
| 147 | static const char PROGMEM alt_on_1[] = {0x8f, 0x90, 0}; | ||
| 148 | static const char PROGMEM alt_on_2[] = {0xaf, 0xb0, 0}; | ||
| 149 | |||
| 150 | // fillers between the modifier icons bleed into the icon frames | ||
| 151 | static const char PROGMEM off_off_1[] = {0xc5, 0}; | ||
| 152 | static const char PROGMEM off_off_2[] = {0xc6, 0}; | ||
| 153 | static const char PROGMEM on_off_1[] = {0xc7, 0}; | ||
| 154 | static const char PROGMEM on_off_2[] = {0xc8, 0}; | ||
| 155 | static const char PROGMEM off_on_1[] = {0xc9, 0}; | ||
| 156 | static const char PROGMEM off_on_2[] = {0xca, 0}; | ||
| 157 | static const char PROGMEM on_on_1[] = {0xcb, 0}; | ||
| 158 | static const char PROGMEM on_on_2[] = {0xcc, 0}; | ||
| 159 | |||
| 160 | if(modifiers & MOD_MASK_GUI) { | ||
| 161 | oled_write_P(gui_on_1, false); | ||
| 162 | } else { | ||
| 163 | oled_write_P(gui_off_1, false); | ||
| 164 | } | ||
| 165 | |||
| 166 | if ((modifiers & MOD_MASK_GUI) && (modifiers & MOD_MASK_ALT)) { | ||
| 167 | oled_write_P(on_on_1, false); | ||
| 168 | } else if(modifiers & MOD_MASK_GUI) { | ||
| 169 | oled_write_P(on_off_1, false); | ||
| 170 | } else if(modifiers & MOD_MASK_ALT) { | ||
| 171 | oled_write_P(off_on_1, false); | ||
| 172 | } else { | ||
| 173 | oled_write_P(off_off_1, false); | ||
| 174 | } | ||
| 175 | |||
| 176 | if(modifiers & MOD_MASK_ALT) { | ||
| 177 | oled_write_P(alt_on_1, false); | ||
| 178 | } else { | ||
| 179 | oled_write_P(alt_off_1, false); | ||
| 180 | } | ||
| 181 | |||
| 182 | if(modifiers & MOD_MASK_GUI) { | ||
| 183 | oled_write_P(gui_on_2, false); | ||
| 184 | } else { | ||
| 185 | oled_write_P(gui_off_2, false); | ||
| 186 | } | ||
| 187 | |||
| 188 | if (modifiers & MOD_MASK_GUI & MOD_MASK_ALT) { | ||
| 189 | oled_write_P(on_on_2, false); | ||
| 190 | } else if(modifiers & MOD_MASK_GUI) { | ||
| 191 | oled_write_P(on_off_2, false); | ||
| 192 | } else if(modifiers & MOD_MASK_ALT) { | ||
| 193 | oled_write_P(off_on_2, false); | ||
| 194 | } else { | ||
| 195 | oled_write_P(off_off_2, false); | ||
| 196 | } | ||
| 197 | |||
| 198 | if(modifiers & MOD_MASK_ALT) { | ||
| 199 | oled_write_P(alt_on_2, false); | ||
| 200 | } else { | ||
| 201 | oled_write_P(alt_off_2, false); | ||
| 202 | } | ||
| 203 | } | ||
| 204 | |||
| 205 | void render_mod_status_ctrl_shift(uint8_t modifiers) { | ||
| 206 | static const char PROGMEM ctrl_off_1[] = {0x89, 0x8a, 0}; | ||
| 207 | static const char PROGMEM ctrl_off_2[] = {0xa9, 0xaa, 0}; | ||
| 208 | static const char PROGMEM ctrl_on_1[] = {0x91, 0x92, 0}; | ||
| 209 | static const char PROGMEM ctrl_on_2[] = {0xb1, 0xb2, 0}; | ||
| 210 | |||
| 211 | static const char PROGMEM shift_off_1[] = {0x8b, 0x8c, 0}; | ||
| 212 | static const char PROGMEM shift_off_2[] = {0xab, 0xac, 0}; | ||
| 213 | static const char PROGMEM shift_on_1[] = {0xcd, 0xce, 0}; | ||
| 214 | static const char PROGMEM shift_on_2[] = {0xcf, 0xd0, 0}; | ||
| 215 | |||
| 216 | // fillers between the modifier icons bleed into the icon frames | ||
| 217 | static const char PROGMEM off_off_1[] = {0xc5, 0}; | ||
| 218 | static const char PROGMEM off_off_2[] = {0xc6, 0}; | ||
| 219 | static const char PROGMEM on_off_1[] = {0xc7, 0}; | ||
| 220 | static const char PROGMEM on_off_2[] = {0xc8, 0}; | ||
| 221 | static const char PROGMEM off_on_1[] = {0xc9, 0}; | ||
| 222 | static const char PROGMEM off_on_2[] = {0xca, 0}; | ||
| 223 | static const char PROGMEM on_on_1[] = {0xcb, 0}; | ||
| 224 | static const char PROGMEM on_on_2[] = {0xcc, 0}; | ||
| 225 | |||
| 226 | if(modifiers & MOD_MASK_CTRL) { | ||
| 227 | oled_write_P(ctrl_on_1, false); | ||
| 228 | } else { | ||
| 229 | oled_write_P(ctrl_off_1, false); | ||
| 230 | } | ||
| 231 | |||
| 232 | if ((modifiers & MOD_MASK_CTRL) && (modifiers & MOD_MASK_SHIFT)) { | ||
| 233 | oled_write_P(on_on_1, false); | ||
| 234 | } else if(modifiers & MOD_MASK_CTRL) { | ||
| 235 | oled_write_P(on_off_1, false); | ||
| 236 | } else if(modifiers & MOD_MASK_SHIFT) { | ||
| 237 | oled_write_P(off_on_1, false); | ||
| 238 | } else { | ||
| 239 | oled_write_P(off_off_1, false); | ||
| 240 | } | ||
| 241 | |||
| 242 | if(modifiers & MOD_MASK_SHIFT) { | ||
| 243 | oled_write_P(shift_on_1, false); | ||
| 244 | } else { | ||
| 245 | oled_write_P(shift_off_1, false); | ||
| 246 | } | ||
| 247 | |||
| 248 | if(modifiers & MOD_MASK_CTRL) { | ||
| 249 | oled_write_P(ctrl_on_2, false); | ||
| 250 | } else { | ||
| 251 | oled_write_P(ctrl_off_2, false); | ||
| 252 | } | ||
| 253 | |||
| 254 | if (modifiers & MOD_MASK_CTRL & MOD_MASK_SHIFT) { | ||
| 255 | oled_write_P(on_on_2, false); | ||
| 256 | } else if(modifiers & MOD_MASK_CTRL) { | ||
| 257 | oled_write_P(on_off_2, false); | ||
| 258 | } else if(modifiers & MOD_MASK_SHIFT) { | ||
| 259 | oled_write_P(off_on_2, false); | ||
| 260 | } else { | ||
| 261 | oled_write_P(off_off_2, false); | ||
| 262 | } | ||
| 263 | |||
| 264 | if(modifiers & MOD_MASK_SHIFT) { | ||
| 265 | oled_write_P(shift_on_2, false); | ||
| 266 | } else { | ||
| 267 | oled_write_P(shift_off_2, false); | ||
| 268 | } | ||
| 269 | } | ||
| 270 | |||
| 271 | void render_logo(void) { | ||
| 272 | static const char PROGMEM corne_logo[] = { | ||
| 273 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, | ||
| 274 | 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0}; | ||
| 275 | oled_write_P(corne_logo, false); | ||
| 276 | // oled_write_P(PSTR("Kimiko"), false); | ||
| 277 | } | ||
| 278 | |||
| 279 | void render_layer_state(void) { | ||
| 280 | static const char PROGMEM default_layer[] = { | ||
| 281 | 0x20, 0x94, 0x95, 0x96, 0x20, | ||
| 282 | 0x20, 0xb4, 0xb5, 0xb6, 0x20, | ||
| 283 | 0x20, 0xd4, 0xd5, 0xd6, 0x20, 0}; | ||
| 284 | static const char PROGMEM raise_layer[] = { | ||
| 285 | 0x20, 0x97, 0x98, 0x99, 0x20, | ||
| 286 | 0x20, 0xb7, 0xb8, 0xb9, 0x20, | ||
| 287 | 0x20, 0xd7, 0xd8, 0xd9, 0x20, 0}; | ||
| 288 | static const char PROGMEM lower_layer[] = { | ||
| 289 | 0x20, 0x9a, 0x9b, 0x9c, 0x20, | ||
| 290 | 0x20, 0xba, 0xbb, 0xbc, 0x20, | ||
| 291 | 0x20, 0xda, 0xdb, 0xdc, 0x20, 0}; | ||
| 292 | static const char PROGMEM adjust_layer[] = { | ||
| 293 | 0x20, 0x9d, 0x9e, 0x9f, 0x20, | ||
| 294 | 0x20, 0xbd, 0xbe, 0xbf, 0x20, | ||
| 295 | 0x20, 0xdd, 0xde, 0xdf, 0x20, 0}; | ||
| 296 | if(layer_state_is(_ADJUST)) { | ||
| 297 | oled_write_P(adjust_layer, false); | ||
| 298 | } else if(layer_state_is(_LOWER)) { | ||
| 299 | oled_write_P(lower_layer, false); | ||
| 300 | } else if(layer_state_is(_RAISE)) { | ||
| 301 | oled_write_P(raise_layer, false); | ||
| 302 | } else { | ||
| 303 | oled_write_P(default_layer, false); | ||
| 304 | } | ||
| 305 | } | ||
| 306 | |||
| 307 | void render_status_main(void) { | ||
| 308 | render_space(); | ||
| 309 | render_space(); | ||
| 310 | render_logo(); | ||
| 311 | render_space(); | ||
| 312 | render_layer_state(); | ||
| 313 | render_space(); | ||
| 314 | render_mod_status_gui_alt(get_mods()|get_oneshot_mods()); | ||
| 315 | render_mod_status_ctrl_shift(get_mods()|get_oneshot_mods()); | ||
| 316 | } | ||
| 317 | |||
| 318 | void render_status_secondary(void) { | ||
| 319 | render_space(); | ||
| 320 | render_space(); | ||
| 321 | render_logo(); | ||
| 322 | render_space(); | ||
| 323 | } | ||
| 324 | |||
| 325 | bool oled_task_user(void) { | ||
| 326 | if (is_keyboard_master()) { | ||
| 327 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | ||
| 328 | } else { | ||
| 329 | render_status_secondary(); | ||
| 330 | } | ||
| 331 | return false; | ||
| 332 | } | ||
| 333 | |||
| 334 | #endif | ||
| 335 | |||
| 336 | |||
| 337 | #ifdef ENCODER_ENABLE | ||
| 338 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 339 | // Encoder on master side | ||
| 340 | if (index == 0) { | ||
| 341 | switch (get_highest_layer(layer_state)) { | ||
| 342 | // If the Default (QWERTY) layer is active | ||
| 343 | case _QWERTY: | ||
| 344 | // Arrow Up/Down | ||
| 345 | if (clockwise) { | ||
| 346 | tap_code(KC_DOWN); | ||
| 347 | } else { | ||
| 348 | tap_code(KC_UP); | ||
| 349 | } | ||
| 350 | break; | ||
| 351 | |||
| 352 | // If the RAISE layer is active | ||
| 353 | case _RAISE: | ||
| 354 | // Switch browser tabs | ||
| 355 | if (clockwise) { | ||
| 356 | tap_code16(LCTL(KC_TAB)); | ||
| 357 | } else { | ||
| 358 | tap_code16(RCS(KC_TAB)); | ||
| 359 | } | ||
| 360 | break; | ||
| 361 | // If the ADJUST layer is active | ||
| 362 | case _ADJUST: | ||
| 363 | // RGB brightness up/down | ||
| 364 | if (clockwise) { | ||
| 365 | rgblight_decrease_val(); // tap_code(RGB_VAD); | ||
| 366 | } else { | ||
| 367 | rgblight_increase_val(); // tap_code(RGB_VAI); | ||
| 368 | } | ||
| 369 | break; | ||
| 370 | } | ||
| 371 | } | ||
| 372 | // Encoder on slave side | ||
| 373 | else if (index == 1) { | ||
| 374 | switch (get_highest_layer(layer_state)) { | ||
| 375 | // If the Default (QWERTY) layer is active | ||
| 376 | case _QWERTY: | ||
| 377 | // Scroll by Word | ||
| 378 | if (clockwise) { | ||
| 379 | tap_code16(LCTL(KC_RGHT)); | ||
| 380 | } else { | ||
| 381 | tap_code16(LCTL(KC_LEFT)); | ||
| 382 | } | ||
| 383 | break; | ||
| 384 | |||
| 385 | // If the LOWER layer is active | ||
| 386 | case _LOWER: | ||
| 387 | // Volume up/down | ||
| 388 | if (clockwise) { | ||
| 389 | tap_code(KC_VOLU); | ||
| 390 | } else { | ||
| 391 | tap_code(KC_VOLD); | ||
| 392 | } | ||
| 393 | break; | ||
| 394 | |||
| 395 | // If the ADJUST layer is active | ||
| 396 | case _ADJUST: | ||
| 397 | // RGB hue up/down | ||
| 398 | if (clockwise) { | ||
| 399 | // tap_code(RGB_HUI); | ||
| 400 | rgblight_increase_hue(); | ||
| 401 | } else { | ||
| 402 | // tap_code(RGB_HUD); | ||
| 403 | rgblight_decrease_hue(); | ||
| 404 | } | ||
| 405 | break; | ||
| 406 | } | ||
| 407 | } | ||
| 408 | return false; | ||
| 409 | } | ||
| 410 | #endif // ENCODER_ENABLE | ||
| 411 | |||
| 412 | |||
| 413 | |||
diff --git a/keyboards/keycapsss/kimiko/keymaps/oriaj3/rules.mk b/keyboards/keycapsss/kimiko/keymaps/oriaj3/rules.mk deleted file mode 100644 index 46cb8d8a94..0000000000 --- a/keyboards/keycapsss/kimiko/keymaps/oriaj3/rules.mk +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | OLED_ENABLE = yes | ||
| 2 | ENCODER_ENABLE = yes # ENables the use of one or more encoders | ||
| 3 | RGBLIGHT_ENABLE = no # Disable keyboard RGB underglow | ||
| 4 | |||
| 5 | # LTO: Link Time Optimizations. | ||
| 6 | # Reduce compiled size, but will automatically disable the legacy TMK Macros and Functions features. | ||
| 7 | # This does not affect QMK Macros and Layers | ||
| 8 | LTO_ENABLE = yes | ||
| 9 | |||
| 10 | #ENABLE RGB MATRIX WITH DRIVER WS2812 | ||
| 11 | RGB_MATRIX_ENABLE = yes | ||
| 12 | RGB_MATRIX_DRIVER = ws2812 | ||
| 13 | |||
| 14 | #DEFINE SPLIT KEYBOARD AND SPLIT TRANSPORT MIRROR | ||
| 15 | SPLIT_KEYBOARD = yes | ||
| 16 | |||
| 17 | #DEACTIVATED FOR MEMORY SAVING | ||
| 18 | MOUSEKEY_ENABLE = no | ||
| 19 | CONSOLE_ENABLE = no | ||
diff --git a/keyboards/keycapsss/kimiko/kimiko.c b/keyboards/keycapsss/kimiko/kimiko.c index 041387ad53..c99a966603 100644 --- a/keyboards/keycapsss/kimiko/kimiko.c +++ b/keyboards/keycapsss/kimiko/kimiko.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2020 @ben_roe (keycapsss.com) | 1 | /* Copyright 2023 @BenRoe (keycapsss.com) |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 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 | 4 | * it under the terms of the GNU General Public License as published by |
| @@ -13,8 +13,10 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "quantum.h" | ||
| 17 | 16 | ||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | #ifdef KEYBOARD_keycapsss_kimiko_rev1 | ||
| 18 | #ifdef RGB_MATRIX_ENABLE | 20 | #ifdef RGB_MATRIX_ENABLE |
| 19 | 21 | ||
| 20 | //Thanks to Ben (keycapsss) for helpipng me to create g_led_config | 22 | //Thanks to Ben (keycapsss) for helpipng me to create g_led_config |
| @@ -75,4 +77,7 @@ led_config_t g_led_config = { { | |||
| 75 | 4, 4, 1, 1, 1, 1 | 77 | 4, 4, 1, 1, 1, 1 |
| 76 | } }; | 78 | } }; |
| 77 | 79 | ||
| 78 | #endif // RGB_MATRIX_ENABLE \ No newline at end of file | 80 | #endif // RGB_MATRIX_ENABLE |
| 81 | #endif // KEYBOARD_keycapsss_kimiko_rev1 | ||
| 82 | |||
| 83 | |||
diff --git a/keyboards/keycapsss/kimiko/post_config.h b/keyboards/keycapsss/kimiko/post_config.h new file mode 100644 index 0000000000..31be5898cf --- /dev/null +++ b/keyboards/keycapsss/kimiko/post_config.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * Copyright 2023 @Ex3c4Def | ||
| 3 | * Copyright 2023 @BenRoe (keycapsss.com) | ||
| 4 | * | ||
| 5 | * This program is free software: you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation, either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | // OLED definitions | ||
| 22 | #ifndef OLED_FONT_H | ||
| 23 | # define OLED_FONT_H "keyboards/keycapsss/kimiko/glcdfont.c" | ||
| 24 | #endif | ||
| 25 | |||
diff --git a/keyboards/keycapsss/kimiko/readme.md b/keyboards/keycapsss/kimiko/readme.md index 0e2604079d..32c6401012 100644 --- a/keyboards/keycapsss/kimiko/readme.md +++ b/keyboards/keycapsss/kimiko/readme.md | |||
| @@ -1,23 +1,59 @@ | |||
| 1 | # Kimiko | 1 | # Kimiko |
| 2 | 2 | ||
| 3 | <img src="https://keycapsss.com/media/image/7f/88/2b/kimiko-split-keyboard-1.jpg" width="800" /> | 3 | ## Rev2 |
| 4 | |||
| 5 | A split keyboard with 4x6 vertically staggered keys and a Kyria style thumb thumb cluster. | ||
| 6 | |||
| 7 |  | ||
| 8 | |||
| 9 | - Keyboard Maintainer: [BenRoe](https://github.com/BenRoe/) [@keycapsss](https://twitter.com/keycapsss) | ||
| 10 | - Hardware Supported: Pro Micro 5V/16Mhz and compatible | ||
| 11 | - Hardware Availability: [Keycapsss.com](https://keycapsss.com) | ||
| 12 | |||
| 13 | ### Features (Rev2) | ||
| 14 | |||
| 15 | - 62 Per key RGB led's (SK6812 Mini-E) | ||
| 16 | - RGB Matrix is enabled as default in rules.mk | ||
| 17 | - The effects can be configured in config.h | ||
| 18 | - Support for 1 rotary encoder per side (two possible positions) | ||
| 19 | - Support for 1 OLED display per side | ||
| 20 | - 128x32 (SSD1306) or Nice!View are supported | ||
| 21 | - With 1 OLED on each side, they have to be the same | ||
| 22 | - Default configuration for 128x32 OLED | ||
| 23 | |||
| 24 | |||
| 25 | Make firmware .hex for this keyboard (after setting up your build environment): | ||
| 26 | |||
| 27 | ```bash | ||
| 28 | qmk compile -kb keycapsss/kimiko/rev2 -km default | ||
| 29 | ``` | ||
| 30 | |||
| 31 | Use [QMK Toolbox](https://github.com/qmk/qmk_toolbox) to flash the firmware hex file to the keyboard controller. | ||
| 32 | |||
| 33 | See 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). | ||
| 34 | |||
| 35 | ## Rev1 | ||
| 4 | 36 | ||
| 5 | A split keyboard with 4x6 vertically staggered keys and thumb keys. | 37 | A split keyboard with 4x6 vertically staggered keys and thumb keys. |
| 6 | 38 | ||
| 39 |  | ||
| 40 | |||
| 41 | - Keyboard Maintainer: [BenRoe](https://github.com/BenRoe/) [@keycapsss](https://twitter.com/keycapsss) | ||
| 42 | - Hardware Supported: Pro Micro 5V/16Mhz and compatible | ||
| 43 | - Hardware Availability: [Keycapsss.com](https://keycapsss.com) | ||
| 44 | |||
| 45 | ### Features (Rev1) | ||
| 46 | |||
| 7 | - Per key RGB led's (SK6812 Mini-E) | 47 | - Per key RGB led's (SK6812 Mini-E) |
| 8 | - 6 underglow RGB led's per side (SK6812 Mini) | 48 | - 6 underglow RGB led's per side (SK6812 Mini) |
| 9 | - Support for 1 rotary encoder per side (two possible positions) | 49 | - Support for 1 rotary encoder per side (two possible positions) |
| 10 | 50 | ||
| 11 | * Keyboard Maintainer: [BenRoe](https://github.com/BenRoe/) [@keycapsss](https://twitter.com/keycapsss) | ||
| 12 | * Hardware Supported: Pro Micro 5V/16Mhz and compatible | ||
| 13 | * Hardware Availability: [keycapsss.com](https://keycapsss.com) | ||
| 14 | |||
| 15 | Make firmware .hex for this keyboard (after setting up your build environment): | 51 | Make firmware .hex for this keyboard (after setting up your build environment): |
| 16 | 52 | ||
| 17 | make keycapsss/kimiko:default | 53 | ```bash |
| 18 | 54 | qmk compile -kb keycapsss/kimiko/rev1 -km default | |
| 19 | Example of flashing this keyboard (or use [QMK Toolbox](https://github.com/qmk/qmk_toolbox)): | 55 | ``` |
| 20 | 56 | ||
| 21 | make keycapsss/kimiko:default:flash | 57 | Use [QMK Toolbox](https://github.com/qmk/qmk_toolbox) to flash the firmware hex file to the keyboard controller. |
| 22 | 58 | ||
| 23 | See 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). | 59 | See 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). |
diff --git a/keyboards/keycapsss/kimiko/rev2/info.json b/keyboards/keycapsss/kimiko/rev2/info.json new file mode 100644 index 0000000000..f595bd9cc4 --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/info.json | |||
| @@ -0,0 +1,199 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "Keycapsss", | ||
| 3 | "keyboard_name": "Kimiko Rev2", | ||
| 4 | "maintainer": "BenRoe", | ||
| 5 | "build": { | ||
| 6 | "lto": true | ||
| 7 | }, | ||
| 8 | "development_board": "promicro", | ||
| 9 | "diode_direction": "COL2ROW", | ||
| 10 | "encoder": { | ||
| 11 | "rotary": [ | ||
| 12 | {"pin_a": "F5", "pin_b": "F4"} | ||
| 13 | ] | ||
| 14 | }, | ||
| 15 | "features": { | ||
| 16 | "encoder": true, | ||
| 17 | "nkro": true, | ||
| 18 | "oled": true | ||
| 19 | }, | ||
| 20 | "matrix_pins": { | ||
| 21 | "cols": ["F6", "F7", "B1", "B3", "B2", "B6"], | ||
| 22 | "rows": ["D4", "C6", "D7", "E6", "B4", "B5"] | ||
| 23 | }, | ||
| 24 | "qmk": { | ||
| 25 | "locking": { | ||
| 26 | "enabled": true, | ||
| 27 | "resync": true | ||
| 28 | } | ||
| 29 | }, | ||
| 30 | "rgb_matrix": { | ||
| 31 | "driver": "ws2812", | ||
| 32 | "layout": [ | ||
| 33 | { "matrix": [0, 5], "x": 66, "y": 5, "flags": 4 }, | ||
| 34 | { "matrix": [0, 4], "x": 53, "y": 4, "flags": 4 }, | ||
| 35 | { "matrix": [0, 3], "x": 40, "y": 0, "flags": 4 }, | ||
| 36 | { "matrix": [0, 2], "x": 26, "y": 4, "flags": 4 }, | ||
| 37 | { "matrix": [0, 1], "x": 13, "y": 11, "flags": 4 }, | ||
| 38 | { "matrix": [0, 0], "x": 0, "y": 11, "flags": 4 }, | ||
| 39 | { "matrix": [1, 0], "x": 0, "y": 23, "flags": 4 }, | ||
| 40 | { "matrix": [1, 1], "x": 13, "y": 23, "flags": 4 }, | ||
| 41 | { "matrix": [1, 2], "x": 26, "y": 15, "flags": 4 }, | ||
| 42 | { "matrix": [1, 3], "x": 40, "y": 12, "flags": 4 }, | ||
| 43 | { "matrix": [1, 4], "x": 53, "y": 15, "flags": 4 }, | ||
| 44 | { "matrix": [1, 5], "x": 66, "y": 17, "flags": 4 }, | ||
| 45 | { "matrix": [2, 5], "x": 66, "y": 29, "flags": 4 }, | ||
| 46 | { "matrix": [2, 4], "x": 53, "y": 27, "flags": 4 }, | ||
| 47 | { "matrix": [2, 3], "x": 40, "y": 24, "flags": 4 }, | ||
| 48 | { "matrix": [2, 2], "x": 26, "y": 27, "flags": 4 }, | ||
| 49 | { "matrix": [2, 1], "x": 13, "y": 35, "flags": 4 }, | ||
| 50 | { "matrix": [2, 0], "x": 0, "y": 35, "flags": 1 }, | ||
| 51 | { "matrix": [3, 0], "x": 0, "y": 47, "flags": 1 }, | ||
| 52 | { "matrix": [3, 1], "x": 13, "y": 47, "flags": 4 }, | ||
| 53 | { "matrix": [3, 2], "x": 26, "y": 39, "flags": 4 }, | ||
| 54 | { "matrix": [3, 3], "x": 40, "y": 36, "flags": 4 }, | ||
| 55 | { "matrix": [3, 4], "x": 53, "y": 39, "flags": 4 }, | ||
| 56 | { "matrix": [3, 5], "x": 66, "y": 41, "flags": 4 }, | ||
| 57 | { "matrix": [5, 5], "x": 80, "y": 48, "flags": 4 }, | ||
| 58 | { "matrix": [4, 5], "x": 94, "y": 52, "flags": 4 }, | ||
| 59 | { "matrix": [4, 4], "x": 87, "y": 64, "flags": 4 }, | ||
| 60 | { "matrix": [4, 3], "x": 73, "y": 60, "flags": 1 }, | ||
| 61 | { "matrix": [4, 2], "x": 53, "y": 51, "flags": 1 }, | ||
| 62 | { "matrix": [4, 1], "x": 40, "y": 47, "flags": 1 }, | ||
| 63 | { "matrix": [4, 0], "x": 26, "y": 51, "flags": 1 }, | ||
| 64 | { "matrix": [6, 5], "x": 158, "y": 5, "flags": 4 }, | ||
| 65 | { "matrix": [6, 4], "x": 171, "y": 4, "flags": 4 }, | ||
| 66 | { "matrix": [6, 3], "x": 184, "y": 0, "flags": 4 }, | ||
| 67 | { "matrix": [6, 2], "x": 198, "y": 4, "flags": 4 }, | ||
| 68 | { "matrix": [6, 1], "x": 211, "y": 11, "flags": 4 }, | ||
| 69 | { "matrix": [6, 0], "x": 224, "y": 11, "flags": 4 }, | ||
| 70 | { "matrix": [7, 0], "x": 224, "y": 23, "flags": 4 }, | ||
| 71 | { "matrix": [7, 1], "x": 211, "y": 23, "flags": 4 }, | ||
| 72 | { "matrix": [7, 2], "x": 198, "y": 15, "flags": 4 }, | ||
| 73 | { "matrix": [7, 3], "x": 184, "y": 12, "flags": 4 }, | ||
| 74 | { "matrix": [7, 4], "x": 171, "y": 15, "flags": 4 }, | ||
| 75 | { "matrix": [7, 5], "x": 158, "y": 17, "flags": 4 }, | ||
| 76 | { "matrix": [8, 5], "x": 158, "y": 29, "flags": 4 }, | ||
| 77 | { "matrix": [8, 4], "x": 171, "y": 27, "flags": 4 }, | ||
| 78 | { "matrix": [8, 3], "x": 184, "y": 24, "flags": 4 }, | ||
| 79 | { "matrix": [8, 2], "x": 198, "y": 27, "flags": 4 }, | ||
| 80 | { "matrix": [8, 1], "x": 211, "y": 35, "flags": 4 }, | ||
| 81 | { "matrix": [8, 0], "x": 224, "y": 35, "flags": 4 }, | ||
| 82 | { "matrix": [9, 0], "x": 224, "y": 47, "flags": 1 }, | ||
| 83 | { "matrix": [9, 1], "x": 211, "y": 47, "flags": 4 }, | ||
| 84 | { "matrix": [9, 2], "x": 198, "y": 39, "flags": 4 }, | ||
| 85 | { "matrix": [9, 3], "x": 184, "y": 36, "flags": 4 }, | ||
| 86 | { "matrix": [9, 4], "x": 171, "y": 39, "flags": 4 }, | ||
| 87 | { "matrix": [9, 5], "x": 158, "y": 41, "flags": 4 }, | ||
| 88 | { "matrix": [11, 5], "x": 144, "y": 48, "flags": 4 }, | ||
| 89 | { "matrix": [10, 5], "x": 130, "y": 52, "flags": 4 }, | ||
| 90 | { "matrix": [10, 4], "x": 137, "y": 64, "flags": 4 }, | ||
| 91 | { "matrix": [10, 3], "x": 151, "y": 60, "flags": 1 }, | ||
| 92 | { "matrix": [10, 2], "x": 171, "y": 51, "flags": 4 }, | ||
| 93 | { "matrix": [10, 1], "x": 184, "y": 47, "flags": 1 }, | ||
| 94 | { "matrix": [10, 0], "x": 198, "y": 51, "flags": 1 } | ||
| 95 | ], | ||
| 96 | "led_count": 62, | ||
| 97 | "max_brightness": 80, | ||
| 98 | "split_count": [31, 31] | ||
| 99 | }, | ||
| 100 | "rgblight": { | ||
| 101 | "led_count": 62, | ||
| 102 | "max_brightness": 80, | ||
| 103 | "split": true, | ||
| 104 | "split_count": [31, 31] | ||
| 105 | }, | ||
| 106 | "split": { | ||
| 107 | "encoder": { | ||
| 108 | "right": { | ||
| 109 | "rotary": [ | ||
| 110 | {"pin_a": "F5", "pin_b": "F4"} | ||
| 111 | ] | ||
| 112 | } | ||
| 113 | }, | ||
| 114 | "matrix_pins": { | ||
| 115 | "right": { | ||
| 116 | "cols": ["F6", "F7", "B1", "B3", "B2", "B6"], | ||
| 117 | "rows": ["D4", "C6", "D7", "E6", "B4", "B5"] | ||
| 118 | } | ||
| 119 | }, | ||
| 120 | "soft_serial_pin": "D2" | ||
| 121 | }, | ||
| 122 | "url": "https://keycapsss.com", | ||
| 123 | "usb": { | ||
| 124 | "device_version": "2.0.0", | ||
| 125 | "pid": "0x4B69", | ||
| 126 | "vid": "0x7983" | ||
| 127 | }, | ||
| 128 | "ws2812": { | ||
| 129 | "pin": "D3" | ||
| 130 | }, | ||
| 131 | "layouts": { | ||
| 132 | "LAYOUT": { | ||
| 133 | "layout": [ | ||
| 134 | {"label": "L00", "matrix": [0, 0], "x": 0, "y": 0.96}, | ||
| 135 | {"label": "L01", "matrix": [0, 1], "x": 1, "y": 0.96}, | ||
| 136 | {"label": "L02", "matrix": [0, 2], "x": 2, "y": 0.31}, | ||
| 137 | {"label": "L03", "matrix": [0, 3], "x": 3, "y": 0}, | ||
| 138 | {"label": "L04", "matrix": [0, 4], "x": 4, "y": 0.31}, | ||
| 139 | {"label": "L05", "matrix": [0, 5], "x": 5, "y": 0.46}, | ||
| 140 | {"label": "R00", "matrix": [6, 5], "x": 12, "y": 0.45}, | ||
| 141 | {"label": "R01", "matrix": [6, 4], "x": 13, "y": 0.31}, | ||
| 142 | {"label": "R02", "matrix": [6, 3], "x": 14, "y": 0}, | ||
| 143 | {"label": "R03", "matrix": [6, 2], "x": 15, "y": 0.31}, | ||
| 144 | {"label": "R04", "matrix": [6, 1], "x": 16, "y": 0.96}, | ||
| 145 | {"label": "R05", "matrix": [6, 0], "x": 17, "y": 0.96}, | ||
| 146 | {"label": "L10", "matrix": [1, 0], "x": 0, "y": 1.96}, | ||
| 147 | {"label": "L11", "matrix": [1, 1], "x": 1, "y": 1.96}, | ||
| 148 | {"label": "L12", "matrix": [1, 2], "x": 2, "y": 1.31}, | ||
| 149 | {"label": "L13", "matrix": [1, 3], "x": 3, "y": 1}, | ||
| 150 | {"label": "L14", "matrix": [1, 4], "x": 4, "y": 1.31}, | ||
| 151 | {"label": "L15", "matrix": [1, 5], "x": 5, "y": 1.46}, | ||
| 152 | {"label": "R10", "matrix": [7, 5], "x": 12, "y": 1.46}, | ||
| 153 | {"label": "R11", "matrix": [7, 4], "x": 13, "y": 1.31}, | ||
| 154 | {"label": "R12", "matrix": [7, 3], "x": 14, "y": 1}, | ||
| 155 | {"label": "R13", "matrix": [7, 2], "x": 15, "y": 1.31}, | ||
| 156 | {"label": "R14", "matrix": [7, 1], "x": 16, "y": 1.96}, | ||
| 157 | {"label": "R15", "matrix": [7, 0], "x": 17, "y": 1.96}, | ||
| 158 | {"label": "L20", "matrix": [2, 0], "x": 0, "y": 2.96}, | ||
| 159 | {"label": "L21", "matrix": [2, 1], "x": 1, "y": 2.96}, | ||
| 160 | {"label": "L22", "matrix": [2, 2], "x": 2, "y": 2.31}, | ||
| 161 | {"label": "L23", "matrix": [2, 3], "x": 3, "y": 2}, | ||
| 162 | {"label": "L24", "matrix": [2, 4], "x": 4, "y": 2.31}, | ||
| 163 | {"label": "L25", "matrix": [2, 5], "x": 5, "y": 2.46}, | ||
| 164 | {"label": "R20", "matrix": [8, 5], "x": 12, "y": 2.46}, | ||
| 165 | {"label": "R21", "matrix": [8, 4], "x": 13, "y": 2.31}, | ||
| 166 | {"label": "R22", "matrix": [8, 3], "x": 14, "y": 2}, | ||
| 167 | {"label": "R23", "matrix": [8, 2], "x": 15, "y": 2.31}, | ||
| 168 | {"label": "R24", "matrix": [8, 1], "x": 16, "y": 2.96}, | ||
| 169 | {"label": "R25", "matrix": [8, 0], "x": 17, "y": 2.96}, | ||
| 170 | {"label": "L30", "matrix": [3, 0], "x": 0, "y": 3.96}, | ||
| 171 | {"label": "L31", "matrix": [3, 1], "x": 1, "y": 4}, | ||
| 172 | {"label": "L32", "matrix": [3, 2], "x": 2, "y": 3.31}, | ||
| 173 | {"label": "L33", "matrix": [3, 3], "x": 3, "y": 3}, | ||
| 174 | {"label": "L34", "matrix": [3, 4], "x": 4, "y": 3.31}, | ||
| 175 | {"label": "L35", "matrix": [3, 5], "x": 5, "y": 3.46}, | ||
| 176 | {"label": "L50", "matrix": [5, 5], "x": 5.75, "y": 4.51}, | ||
| 177 | {"label": "L40", "matrix": [4, 5], "x": 6.75, "y": 5}, | ||
| 178 | {"label": "R40", "matrix": [10, 5], "x": 10.25, "y": 5}, | ||
| 179 | {"label": "R50", "matrix": [11, 5], "x": 11.25, "y": 4.5}, | ||
| 180 | {"label": "R30", "matrix": [9, 5], "x": 12, "y": 3.46}, | ||
| 181 | {"label": "R31", "matrix": [9, 4], "x": 13, "y": 3.31}, | ||
| 182 | {"label": "R32", "matrix": [9, 3], "x": 14, "y": 3}, | ||
| 183 | {"label": "R33", "matrix": [9, 2], "x": 15, "y": 3.31}, | ||
| 184 | {"label": "R34", "matrix": [9, 1], "x": 16, "y": 3.96}, | ||
| 185 | {"label": "R35", "matrix": [9, 0], "x": 17, "y": 3.96}, | ||
| 186 | {"label": "L41", "matrix": [4, 0], "x": 2.5, "y": 4.5}, | ||
| 187 | {"label": "L42", "matrix": [4, 1], "x": 3.5, "y": 4.5}, | ||
| 188 | {"label": "L43", "matrix": [4, 2], "x": 4.5, "y": 4.95}, | ||
| 189 | {"label": "L44", "matrix": [4, 3], "x": 5.5, "y": 5.5}, | ||
| 190 | {"label": "L45", "matrix": [4, 4], "x": 6.5, "y": 6}, | ||
| 191 | {"label": "R41", "matrix": [10, 4], "x": 10.5, "y": 6}, | ||
| 192 | {"label": "R42", "matrix": [10, 3], "x": 11.5, "y": 5.5}, | ||
| 193 | {"label": "R43", "matrix": [10, 2], "x": 12.5, "y": 4.75}, | ||
| 194 | {"label": "R44", "matrix": [10, 1], "x": 13.5, "y": 4.5}, | ||
| 195 | {"label": "R45", "matrix": [10, 0], "x": 14.5, "y": 4.5} | ||
| 196 | ] | ||
| 197 | } | ||
| 198 | } | ||
| 199 | } | ||
diff --git a/keyboards/keycapsss/kimiko/rev2/keymaps/default/config.h b/keyboards/keycapsss/kimiko/rev2/keymaps/default/config.h new file mode 100644 index 0000000000..34c2708e86 --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/keymaps/default/config.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * Copyright 2020 @ben_roe (keycapsss.com) | ||
| 3 | * Copyright 2023 @Ex3c4Def | ||
| 4 | * | ||
| 5 | * This program is free software: you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation, either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #define MASTER_RIGHT | ||
| 22 | #define ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue | ||
| 23 | #define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard | ||
| 24 | |||
| 25 | // These modes also require the RGB_MATRIX_FRAMEBUFFER_EFFECTS define to be available. | ||
| 26 | #define ENABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM! | ||
| 27 | |||
| 28 | #define RGB_MATRIX_VAL_STEP 4 | ||
| 29 | #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_COLOR | ||
| 30 | #define RGB_MATRIX_DEFAULT_HUE 0 // Sets the default hue value, if none has been set | ||
| 31 | #define RGB_MATRIX_DEFAULT_SAT 255 // Sets the default saturation value, if none has been set | ||
| 32 | #define RGB_MATRIX_DEFAULT_VAL 60 // RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set | ||
| 33 | #define RGB_MATRIX_DEFAULT_SPD 60 // Sets the default animation speed, if none has been set | ||
| 34 | |||
| 35 | #if defined(POINTING_DEVICE_DRIVER_pimoroni_trackball) | ||
| 36 | # define POINTING_DEVICE_ROTATION_180 // may be used for trackball in 2nd position | ||
| 37 | #endif | ||
diff --git a/keyboards/keycapsss/kimiko/rev2/keymaps/default/keymap.c b/keyboards/keycapsss/kimiko/rev2/keymaps/default/keymap.c new file mode 100644 index 0000000000..f7e434c881 --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/keymaps/default/keymap.c | |||
| @@ -0,0 +1,122 @@ | |||
| 1 | /* Copyright 2019 Leo Batyuk | ||
| 2 | * Copyright 2020 Drashna Jaelre <@drashna> | ||
| 3 | * Copyright 2020 @ben_roe (keycapsss.com) | ||
| 4 | * Copyright 2023 @Ex3c4Def | ||
| 5 | * | ||
| 6 | * This program is free software: you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation, either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include QMK_KEYBOARD_H | ||
| 21 | |||
| 22 | enum layers { | ||
| 23 | _QWERTY, | ||
| 24 | _LOWER, | ||
| 25 | _RAISE, | ||
| 26 | _ADJUST, | ||
| 27 | }; | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | /* QWERTY | ||
| 31 | * ,--------------------------------------------. ,----------------------------------------------. | ||
| 32 | * | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | | ||
| 33 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 34 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | - | | ||
| 35 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 36 | * | LShift | A | S | D | F | G |---------------. ,---------------| H | J | K | L | ; | ' | | ||
| 37 | * |---------+------+------+------+------+------| ( | [ | | ] | ) |------+------+------+------+------+-----------| | ||
| 38 | * | LCTRL | Z | X | C | V | B |------|--------| |-------|-------| N | M | , | . | / |RShift/Enter| | ||
| 39 | * `--------------------------------------------| / \ |----------------------------------------------' | ||
| 40 | * | LCTRL| LGUI |LALT |LOWER | Space / \Enter| RAISE |BackSP| RGUI | RALT | | ||
| 41 | * `----------------------------------' '---------------------------------' | ||
| 42 | */ | ||
| 43 | [_QWERTY] = LAYOUT( | ||
| 44 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, | ||
| 45 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, | ||
| 46 | KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 47 | KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LPRN, KC_LBRC, KC_RBRC, KC_RPRN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT), | ||
| 48 | KC_LCTL, KC_LGUI, KC_LALT, TL_LOWR, KC_SPC, KC_ENT, TL_UPPR, KC_BSPC, KC_RGUI, KC_RALT | ||
| 49 | ), | ||
| 50 | /* LOWER | ||
| 51 | * QWERTY | ||
| 52 | * ,--------------------------------------------. ,----------------------------------------------. | ||
| 53 | * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | | ||
| 54 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 55 | * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | | ||
| 56 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 57 | * | ` | ! | @ | # | $ | % |---------------. ,---------------| ^ | & | * | ( | ) | ~ | | ||
| 58 | * |---------+------+------+------+------+------| | | | | |------+------+------+------+------+-----------| | ||
| 59 | * | | | | | | |------|--------| |-------|-------| | _ | + | { | } | \ | | ||
| 60 | * `--------------------------------------------| / \ |----------------------------------------------' | ||
| 61 | * | LCTRL| LGUI |LALT |LOWER | Space / \Enter| RAISE |BackSP| RGUI | RALT | | ||
| 62 | * `----------------------------------' '---------------------------------' | ||
| 63 | */ | ||
| 64 | [_LOWER] = LAYOUT( | ||
| 65 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 66 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F12, | ||
| 67 | KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TILD, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______,_______, _______, _______, XXXXXXX, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_BSLS, | ||
| 69 | _______, _______, _______, _______,_______, _______, _______, _______, _______, _______ | ||
| 70 | ), | ||
| 71 | /* RAISE | ||
| 72 | * ,--------------------------------------------. ,----------------------------------------------. | ||
| 73 | * | | | | | | | | | | | | | | | ||
| 74 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 75 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | | ||
| 76 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 77 | * | F1 | F2 | F3 | F4 | F5 | F6 |---------------. ,---------------| Left | Down | Up |Right | ; | | | ||
| 78 | * |---------+------+------+------+------+------| [ | [ | | [ | [ |------+------+------+------+------+-----------| | ||
| 79 | * | F7 | F8 | F9 | F10 | F11 | F12 |------|--------| |-------|-------| + | - | = | [ | ] | \ | | ||
| 80 | * `--------------------------------------------| / \ |----------------------------------------------' | ||
| 81 | * | LCTRL| LGUI |LALT |LOWER | Space / \Enter| RAISE |BackSP| RGUI | RALT | | ||
| 82 | * `----------------------------------' '---------------------------------' | ||
| 83 | */ | ||
| 84 | [_RAISE] = LAYOUT( | ||
| 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 86 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 87 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, | ||
| 88 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, KC_PLUS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 89 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 90 | ), | ||
| 91 | /* ADJUST (Press LOWER and RAISE together) | ||
| 92 | * ,--------------------------------------------. ,----------------------------------------------. | ||
| 93 | * | QK_BOOT | | | | | | | | | | | | | | ||
| 94 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 95 | * | RGB ON | HUE+ | SAT+ | VAL+ | | | | PREV | PLAY | NEXT | | | | | ||
| 96 | * |---------+------+------+------+------+------| |------+------+------+------+------+-----------| | ||
| 97 | * | MODE | HUE- | SAT- | VAL- | | |---------------. ,---------------| VOL+ | MUTE | VOL- | | | | | ||
| 98 | * |---------+------+------+------+------+------| | | | | |------+------+------+------+------+-----------| | ||
| 99 | * | | | | | | |------|--------| |-------|-------| | | | | | | | ||
| 100 | * `--------------------------------------------| / \ |----------------------------------------------' | ||
| 101 | * | LCTRL| LGUI |LALT |LOWER | Space / \Enter| RAISE |BackSP| RGUI | RALT | | ||
| 102 | * `----------------------------------' '---------------------------------' | ||
| 103 | */ | ||
| 104 | [_ADJUST] = LAYOUT( | ||
| 105 | QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 106 | RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 107 | RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX, XXXXXXX, KC_VOLU, KC_MUTE, KC_VOLD, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 108 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 109 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 110 | ) | ||
| 111 | }; | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | #if defined(ENCODER_MAP_ENABLE) | ||
| 116 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
| 117 | [_QWERTY] = { ENCODER_CCW_CW(KC_DOWN, KC_UP), ENCODER_CCW_CW(KC_LEFT, KC_RGHT) }, | ||
| 118 | [_LOWER] = { ENCODER_CCW_CW(RGB_HUI, KC_TAB), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
| 119 | [_RAISE] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_SPD, RGB_SPI) }, | ||
| 120 | [_ADJUST] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) }, | ||
| 121 | }; | ||
| 122 | #endif // ENCODER_MAP_ENABLE | ||
diff --git a/keyboards/keycapsss/kimiko/rev2/keymaps/default/rules.mk b/keyboards/keycapsss/kimiko/rev2/keymaps/default/rules.mk new file mode 100644 index 0000000000..420f29d8f7 --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/keymaps/default/rules.mk | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | TRI_LAYER_ENABLE = yes | ||
| 2 | ENCODER_MAP_ENABLE = yes | ||
| 3 | |||
| 4 | RGBLIGHT_ENABLE = no # Enable keyboard 'old' RGB lightning | ||
| 5 | RGB_MATRIX_ENABLE = yes # Enable keyboard RGB Matrix lightning | ||
| 6 | |||
| 7 | # POINTING_DEVICE_ENABLE = yes | ||
| 8 | # POINTING_DEVICE_DRIVER = cirque_pinnacle_i2c | ||
diff --git a/keyboards/keycapsss/kimiko/rev2/rev2.c b/keyboards/keycapsss/kimiko/rev2/rev2.c new file mode 100644 index 0000000000..c5765812c0 --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/rev2.c | |||
| @@ -0,0 +1,209 @@ | |||
| 1 | /* Copyright 2023 @BenRoe (keycapsss.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 | #include "quantum.h" | ||
| 18 | |||
| 19 | enum layers { _QWERTY, _LOWER, _RAISE, _ADJUST }; | ||
| 20 | |||
| 21 | # ifdef OLED_ENABLE | ||
| 22 | |||
| 23 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { | ||
| 24 | return OLED_ROTATION_270; | ||
| 25 | } | ||
| 26 | |||
| 27 | // NOTE: Most of the OLED code was originally written by Soundmonster for the Corne, | ||
| 28 | // and has been copied directly from `crkbd/soundmonster/keymap.c` | ||
| 29 | |||
| 30 | void render_mod_status_gui_alt(uint8_t modifiers) { | ||
| 31 | static const char PROGMEM gui_off_1[] = {0x85, 0x86, 0}; | ||
| 32 | static const char PROGMEM gui_off_2[] = {0xa5, 0xa6, 0}; | ||
| 33 | static const char PROGMEM gui_on_1[] = {0x8d, 0x8e, 0}; | ||
| 34 | static const char PROGMEM gui_on_2[] = {0xad, 0xae, 0}; | ||
| 35 | |||
| 36 | static const char PROGMEM alt_off_1[] = {0x87, 0x88, 0}; | ||
| 37 | static const char PROGMEM alt_off_2[] = {0xa7, 0xa8, 0}; | ||
| 38 | static const char PROGMEM alt_on_1[] = {0x8f, 0x90, 0}; | ||
| 39 | static const char PROGMEM alt_on_2[] = {0xaf, 0xb0, 0}; | ||
| 40 | |||
| 41 | // fillers between the modifier icons bleed into the icon frames | ||
| 42 | static const char PROGMEM off_off_1[] = {0xc5, 0}; | ||
| 43 | static const char PROGMEM off_off_2[] = {0xc6, 0}; | ||
| 44 | static const char PROGMEM on_off_1[] = {0xc7, 0}; | ||
| 45 | static const char PROGMEM on_off_2[] = {0xc8, 0}; | ||
| 46 | static const char PROGMEM off_on_1[] = {0xc9, 0}; | ||
| 47 | static const char PROGMEM off_on_2[] = {0xca, 0}; | ||
| 48 | static const char PROGMEM on_on_1[] = {0xcb, 0}; | ||
| 49 | static const char PROGMEM on_on_2[] = {0xcc, 0}; | ||
| 50 | |||
| 51 | if (modifiers & MOD_MASK_GUI) { | ||
| 52 | oled_write_P(gui_on_1, false); | ||
| 53 | } else { | ||
| 54 | oled_write_P(gui_off_1, false); | ||
| 55 | } | ||
| 56 | |||
| 57 | if ((modifiers & MOD_MASK_GUI) && (modifiers & MOD_MASK_ALT)) { | ||
| 58 | oled_write_P(on_on_1, false); | ||
| 59 | } else if (modifiers & MOD_MASK_GUI) { | ||
| 60 | oled_write_P(on_off_1, false); | ||
| 61 | } else if (modifiers & MOD_MASK_ALT) { | ||
| 62 | oled_write_P(off_on_1, false); | ||
| 63 | } else { | ||
| 64 | oled_write_P(off_off_1, false); | ||
| 65 | } | ||
| 66 | |||
| 67 | if (modifiers & MOD_MASK_ALT) { | ||
| 68 | oled_write_P(alt_on_1, false); | ||
| 69 | } else { | ||
| 70 | oled_write_P(alt_off_1, false); | ||
| 71 | } | ||
| 72 | |||
| 73 | if (modifiers & MOD_MASK_GUI) { | ||
| 74 | oled_write_P(gui_on_2, false); | ||
| 75 | } else { | ||
| 76 | oled_write_P(gui_off_2, false); | ||
| 77 | } | ||
| 78 | |||
| 79 | if (modifiers & MOD_MASK_GUI & MOD_MASK_ALT) { | ||
| 80 | oled_write_P(on_on_2, false); | ||
| 81 | } else if (modifiers & MOD_MASK_GUI) { | ||
| 82 | oled_write_P(on_off_2, false); | ||
| 83 | } else if (modifiers & MOD_MASK_ALT) { | ||
| 84 | oled_write_P(off_on_2, false); | ||
| 85 | } else { | ||
| 86 | oled_write_P(off_off_2, false); | ||
| 87 | } | ||
| 88 | |||
| 89 | if (modifiers & MOD_MASK_ALT) { | ||
| 90 | oled_write_P(alt_on_2, false); | ||
| 91 | } else { | ||
| 92 | oled_write_P(alt_off_2, false); | ||
| 93 | } | ||
| 94 | } | ||
| 95 | |||
| 96 | void render_mod_status_ctrl_shift(uint8_t modifiers) { | ||
| 97 | static const char PROGMEM ctrl_off_1[] = {0x89, 0x8a, 0}; | ||
| 98 | static const char PROGMEM ctrl_off_2[] = {0xa9, 0xaa, 0}; | ||
| 99 | static const char PROGMEM ctrl_on_1[] = {0x91, 0x92, 0}; | ||
| 100 | static const char PROGMEM ctrl_on_2[] = {0xb1, 0xb2, 0}; | ||
| 101 | |||
| 102 | static const char PROGMEM shift_off_1[] = {0x8b, 0x8c, 0}; | ||
| 103 | static const char PROGMEM shift_off_2[] = {0xab, 0xac, 0}; | ||
| 104 | static const char PROGMEM shift_on_1[] = {0xcd, 0xce, 0}; | ||
| 105 | static const char PROGMEM shift_on_2[] = {0xcf, 0xd0, 0}; | ||
| 106 | |||
| 107 | // fillers between the modifier icons bleed into the icon frames | ||
| 108 | static const char PROGMEM off_off_1[] = {0xc5, 0}; | ||
| 109 | static const char PROGMEM off_off_2[] = {0xc6, 0}; | ||
| 110 | static const char PROGMEM on_off_1[] = {0xc7, 0}; | ||
| 111 | static const char PROGMEM on_off_2[] = {0xc8, 0}; | ||
| 112 | static const char PROGMEM off_on_1[] = {0xc9, 0}; | ||
| 113 | static const char PROGMEM off_on_2[] = {0xca, 0}; | ||
| 114 | static const char PROGMEM on_on_1[] = {0xcb, 0}; | ||
| 115 | static const char PROGMEM on_on_2[] = {0xcc, 0}; | ||
| 116 | |||
| 117 | if (modifiers & MOD_MASK_CTRL) { | ||
| 118 | oled_write_P(ctrl_on_1, false); | ||
| 119 | } else { | ||
| 120 | oled_write_P(ctrl_off_1, false); | ||
| 121 | } | ||
| 122 | |||
| 123 | if ((modifiers & MOD_MASK_CTRL) && (modifiers & MOD_MASK_SHIFT)) { | ||
| 124 | oled_write_P(on_on_1, false); | ||
| 125 | } else if (modifiers & MOD_MASK_CTRL) { | ||
| 126 | oled_write_P(on_off_1, false); | ||
| 127 | } else if (modifiers & MOD_MASK_SHIFT) { | ||
| 128 | oled_write_P(off_on_1, false); | ||
| 129 | } else { | ||
| 130 | oled_write_P(off_off_1, false); | ||
| 131 | } | ||
| 132 | |||
| 133 | if (modifiers & MOD_MASK_SHIFT) { | ||
| 134 | oled_write_P(shift_on_1, false); | ||
| 135 | } else { | ||
| 136 | oled_write_P(shift_off_1, false); | ||
| 137 | } | ||
| 138 | |||
| 139 | if (modifiers & MOD_MASK_CTRL) { | ||
| 140 | oled_write_P(ctrl_on_2, false); | ||
| 141 | } else { | ||
| 142 | oled_write_P(ctrl_off_2, false); | ||
| 143 | } | ||
| 144 | |||
| 145 | if (modifiers & MOD_MASK_CTRL & MOD_MASK_SHIFT) { | ||
| 146 | oled_write_P(on_on_2, false); | ||
| 147 | } else if (modifiers & MOD_MASK_CTRL) { | ||
| 148 | oled_write_P(on_off_2, false); | ||
| 149 | } else if (modifiers & MOD_MASK_SHIFT) { | ||
| 150 | oled_write_P(off_on_2, false); | ||
| 151 | } else { | ||
| 152 | oled_write_P(off_off_2, false); | ||
| 153 | } | ||
| 154 | |||
| 155 | if (modifiers & MOD_MASK_SHIFT) { | ||
| 156 | oled_write_P(shift_on_2, false); | ||
| 157 | } else { | ||
| 158 | oled_write_P(shift_off_2, false); | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | void render_logo(void) { | ||
| 163 | static const char PROGMEM kimiko_logo[] = {0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0}; | ||
| 164 | oled_advance_page(false); | ||
| 165 | oled_advance_page(false); | ||
| 166 | oled_write_P(kimiko_logo, false); | ||
| 167 | // oled_write_P(PSTR("Kimiko"), false); | ||
| 168 | } | ||
| 169 | |||
| 170 | void render_layer_state(void) { | ||
| 171 | static const char PROGMEM default_layer[] = {0x20, 0x94, 0x95, 0x96, 0x20, 0x20, 0xb4, 0xb5, 0xb6, 0x20, 0x20, 0xd4, 0xd5, 0xd6, 0x20, 0}; | ||
| 172 | static const char PROGMEM raise_layer[] = {0x20, 0x97, 0x98, 0x99, 0x20, 0x20, 0xb7, 0xb8, 0xb9, 0x20, 0x20, 0xd7, 0xd8, 0xd9, 0x20, 0}; | ||
| 173 | static const char PROGMEM lower_layer[] = {0x20, 0x9a, 0x9b, 0x9c, 0x20, 0x20, 0xba, 0xbb, 0xbc, 0x20, 0x20, 0xda, 0xdb, 0xdc, 0x20, 0}; | ||
| 174 | static const char PROGMEM adjust_layer[] = {0x20, 0x9d, 0x9e, 0x9f, 0x20, 0x20, 0xbd, 0xbe, 0xbf, 0x20, 0x20, 0xdd, 0xde, 0xdf, 0x20, 0}; | ||
| 175 | |||
| 176 | if (layer_state_is(_ADJUST)) { | ||
| 177 | oled_write_P(adjust_layer, false); | ||
| 178 | } else if (layer_state_is(_LOWER)) { | ||
| 179 | oled_write_P(lower_layer, false); | ||
| 180 | } else if (layer_state_is(_RAISE)) { | ||
| 181 | oled_write_P(raise_layer, false); | ||
| 182 | } else { | ||
| 183 | oled_write_P(default_layer, false); | ||
| 184 | } | ||
| 185 | } | ||
| 186 | |||
| 187 | void render_status_main(void) { | ||
| 188 | render_logo(); | ||
| 189 | oled_advance_page(false); | ||
| 190 | render_layer_state(); | ||
| 191 | oled_advance_page(false); | ||
| 192 | render_mod_status_gui_alt(get_mods() | get_oneshot_mods()); | ||
| 193 | render_mod_status_ctrl_shift(get_mods() | get_oneshot_mods()); | ||
| 194 | } | ||
| 195 | |||
| 196 | bool oled_task_kb(void) { | ||
| 197 | if (!oled_task_user()) { | ||
| 198 | return false; | ||
| 199 | } | ||
| 200 | |||
| 201 | if (is_keyboard_master()) { | ||
| 202 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | ||
| 203 | } else { | ||
| 204 | render_logo(); | ||
| 205 | } | ||
| 206 | |||
| 207 | return true; | ||
| 208 | } | ||
| 209 | # endif // OLED_ENABLE | ||
diff --git a/keyboards/keycapsss/kimiko/rev2/rules.mk b/keyboards/keycapsss/kimiko/rev2/rules.mk new file mode 100644 index 0000000000..7d895c7f4d --- /dev/null +++ b/keyboards/keycapsss/kimiko/rev2/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # File is left intentionally blank | |||
diff --git a/keyboards/keycapsss/kimiko/rules.mk b/keyboards/keycapsss/kimiko/rules.mk index 7aeacb46d0..cb9f69d6bb 100644 --- a/keyboards/keycapsss/kimiko/rules.mk +++ b/keyboards/keycapsss/kimiko/rules.mk | |||
| @@ -1,15 +1 @@ | |||
| 1 | # Build Options | DEFAULT_FOLDER = keycapsss/kimiko/rev2 | |
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
| 5 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 7 | CONSOLE_ENABLE = no # Console for debug | ||
| 8 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 9 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 10 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 11 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 12 | AUDIO_ENABLE = no # Audio output | ||
| 13 | SPLIT_KEYBOARD = yes | ||
| 14 | |||
| 15 | DEFAULT_FOLDER = keycapsss/kimiko/rev1 | ||
