diff options
| author | QMK Bot <hello@qmk.fm> | 2021-01-11 07:02:09 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-01-11 07:02:09 +0000 |
| commit | 7464c1d3308666e04c89dfd7e19ba1e7e7f62ec6 (patch) | |
| tree | 4114e3e857c0899b3965294071152192353173d0 | |
| parent | e5b292edf2263f4cee58e5b2fc7d47e6034d844a (diff) | |
| parent | 4c48518a4ef25f52a9a5d214041c9aeb3e0546df (diff) | |
| download | qmk_firmware-7464c1d3308666e04c89dfd7e19ba1e7e7f62ec6.tar.gz qmk_firmware-7464c1d3308666e04c89dfd7e19ba1e7e7f62ec6.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/misonoworks/karina/config.h | 59 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/info.json | 12 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/karina.c | 18 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/karina.h | 32 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/keymaps/default/keymap.c | 64 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/keymaps/voltex/keymap.c | 64 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/misonoworks/karina/rules.mk | 23 |
8 files changed, 287 insertions, 0 deletions
diff --git a/keyboards/misonoworks/karina/config.h b/keyboards/misonoworks/karina/config.h new file mode 100644 index 000000000..6cd5f20e8 --- /dev/null +++ b/keyboards/misonoworks/karina/config.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MisonoWorks | ||
| 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 | // descriptors | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0xC456 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER MisonoWorks | ||
| 27 | #define PRODUCT Karina | ||
| 28 | |||
| 29 | // matrix | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 11 | ||
| 32 | |||
| 33 | // pins | ||
| 34 | #define MATRIX_ROW_PINS { D2, D3, D5, F0 } | ||
| 35 | #define MATRIX_COL_PINS { B3, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6} | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | // diode mode | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | // debouncing, NKRO, mouse keys speed | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | #define FORCE_NKRO | ||
| 44 | #define MK_3_SPEED | ||
| 45 | #define TERMINAL_HELP | ||
| 46 | |||
| 47 | // encoders | ||
| 48 | #define ENCODERS_PAD_A { B2, F4 } | ||
| 49 | #define ENCODERS_PAD_B { B1, F5 } | ||
| 50 | #define ENCODER_RESOLUTION 3 | ||
| 51 | |||
| 52 | /* Locking resynchronize hack */ | ||
| 53 | #define LOCKING_RESYNC_ENABLE | ||
| 54 | |||
| 55 | #define RGB_DI_PIN D1 | ||
| 56 | #ifdef RGB_DI_PIN | ||
| 57 | #define RGBLED_NUM 19 | ||
| 58 | #define RGBLIGHT_ANIMATIONS | ||
| 59 | #endif | ||
diff --git a/keyboards/misonoworks/karina/info.json b/keyboards/misonoworks/karina/info.json new file mode 100644 index 000000000..3d724ea4a --- /dev/null +++ b/keyboards/misonoworks/karina/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Karina", | ||
| 3 | "url": "https://github.com/autumnisacutie/karina", | ||
| 4 | "maintainer": "MisonoWorks", | ||
| 5 | "width": 11, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":10, "y":0}, {"label":"Q", "x":0.5, "y":1}, {"label":"W", "x":1.5, "y":1}, {"label":"E", "x":2.5, "y":1}, {"label":"R", "x":3.5, "y":1}, {"label":"T", "x":4.5, "y":1}, {"label":"Y", "x":5.5, "y":1}, {"label":"U", "x":6.5, "y":1}, {"label":"I", "x":7.5, "y":1}, {"label":"O", "x":8.5, "y":1}, {"label":"P", "x":9.5, "y":1}, {"label":"Tab", "x":0, "y":2}, {"label":"A", "x":1, "y":2}, {"label":"S", "x":2, "y":2}, {"label":"D", "x":3, "y":2}, {"label":"F", "x":4, "y":2}, {"label":"G", "x":5, "y":2}, {"label":"H", "x":6, "y":2}, {"label":"J", "x":7, "y":2}, {"label":"K", "x":8, "y":2}, {"label":"L", "x":9, "y":2}, {"label":"Enter", "x":10, "y":2}, {"label":"Shift", "x":0, "y":3, "w":1.5}, {"label":"Z", "x":1.5, "y":3}, {"label":"X", "x":2.5, "y":3}, {"label":"C", "x":3.5, "y":3}, {"label":"V", "x":4.5, "y":3}, {"label":"B", "x":5.5, "y":3}, {"label":"N", "x":6.5, "y":3}, {"label":"M", "x":7.5, "y":3}, {"label":"<", "x":8.5, "y":3}, {"label":"Shift", "x":9.5, "y":3, "w":1.5}, {"label":"Alt", "x":0, "y":4, "w":1.75}, {"x":1.75, "y":4, "w":1.25}, {"x":3, "y":4, "w":2.75}, {"x":5.75, "y":4, "w":2.25}, {"x":8, "y":4, "w":1.25}, {"label":"Control", "x":9.25, "y":4, "w":1.75}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/misonoworks/karina/karina.c b/keyboards/misonoworks/karina/karina.c new file mode 100644 index 000000000..f621e3f45 --- /dev/null +++ b/keyboards/misonoworks/karina/karina.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MisonoWorks | ||
| 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 | #include "karina.h" | ||
diff --git a/keyboards/misonoworks/karina/karina.h b/keyboards/misonoworks/karina/karina.h new file mode 100644 index 000000000..3192b8e40 --- /dev/null +++ b/keyboards/misonoworks/karina/karina.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MisonoWorks | ||
| 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 "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT( \ | ||
| 23 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, \ | ||
| 24 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \ | ||
| 25 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ | ||
| 26 | K300, K301, K303, K306, K308, K309 \ | ||
| 27 | ) { \ | ||
| 28 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \ | ||
| 29 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \ | ||
| 30 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \ | ||
| 31 | { K300, K301, KC_NO, K303, KC_NO, KC_NO, K306, KC_NO, K308, K309, KC_NO } \ | ||
| 32 | } | ||
diff --git a/keyboards/misonoworks/karina/keymaps/default/keymap.c b/keyboards/misonoworks/karina/keymaps/default/keymap.c new file mode 100644 index 000000000..47179fb83 --- /dev/null +++ b/keyboards/misonoworks/karina/keymaps/default/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MisonoWorks | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | enum layers { | ||
| 21 | DEFAULT, | ||
| 22 | SUPER, | ||
| 23 | META, | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | [DEFAULT] = LAYOUT( | ||
| 29 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 30 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 31 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_MUTE, | ||
| 32 | KC_LALT, MO(SUPER), KC_SPC, KC_BSPC, MO(META), KC_LCTL), | ||
| 33 | |||
| 34 | [SUPER] = LAYOUT( | ||
| 35 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 36 | KC_MINUS, KC_EQUAL, KC_GRAVE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_QUOT, KC_SCLN, | ||
| 37 | KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLSH, KC_BSLS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS, KC_TRNS), | ||
| 39 | |||
| 40 | [META] = LAYOUT( | ||
| 41 | KC_NUMLOCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
| 42 | KC_F11, KC_F12, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, | ||
| 43 | KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_KP_PLUS, KC_P2, KC_P0, KC_P1, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | RGB_TOG, RGB_SAI, RGB_HUI, RGB_VAI, KC_TRNS, RGB_MOD) | ||
| 45 | |||
| 46 | }; | ||
| 47 | |||
| 48 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 49 | if (index == 0) { | ||
| 50 | if (clockwise) { | ||
| 51 | tap_code(KC_PGUP); | ||
| 52 | } else { | ||
| 53 | tap_code(KC_PGDOWN); | ||
| 54 | } | ||
| 55 | } | ||
| 56 | else if (index == 1) { | ||
| 57 | if (clockwise) { | ||
| 58 | tap_code(KC_VOLU); | ||
| 59 | } else { | ||
| 60 | tap_code(KC_VOLD); | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
| 64 | |||
diff --git a/keyboards/misonoworks/karina/keymaps/voltex/keymap.c b/keyboards/misonoworks/karina/keymaps/voltex/keymap.c new file mode 100644 index 000000000..00361602d --- /dev/null +++ b/keyboards/misonoworks/karina/keymaps/voltex/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 MisonoWorks | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | enum layers { | ||
| 21 | DEFAULT, | ||
| 22 | SUPER, | ||
| 23 | META, | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | [DEFAULT] = LAYOUT( | ||
| 29 | KC_TRNS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 30 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 31 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_TRNS, | ||
| 32 | KC_LALT, MO(SUPER), KC_SPC, KC_BSPC, MO(META), KC_LCTL), | ||
| 33 | |||
| 34 | [SUPER] = LAYOUT( | ||
| 35 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 36 | KC_MINUS, KC_EQUAL, KC_GRAVE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_QUOT, KC_SCLN, | ||
| 37 | KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLSH, KC_BSLS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS, KC_TRNS), | ||
| 39 | |||
| 40 | [META] = LAYOUT( | ||
| 41 | KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
| 42 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, | ||
| 43 | KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_KP_PLUS, KC_KP_2, KC_KP_0, KC_KP_1, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | RGB_TOG, RGB_SAI, RGB_HUI, RGB_VAI, KC_TRNS, RGB_MOD) | ||
| 45 | |||
| 46 | }; | ||
| 47 | |||
| 48 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 49 | if (index == 0) { | ||
| 50 | if (clockwise) { | ||
| 51 | tap_code(KC_MS_LEFT); | ||
| 52 | } else { | ||
| 53 | tap_code(KC_MS_RIGHT); | ||
| 54 | } | ||
| 55 | } | ||
| 56 | else if (index == 1) { | ||
| 57 | if (clockwise) { | ||
| 58 | tap_code(KC_MS_U); | ||
| 59 | } else { | ||
| 60 | tap_code(KC_MS_D); | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
| 64 | |||
diff --git a/keyboards/misonoworks/karina/readme.md b/keyboards/misonoworks/karina/readme.md new file mode 100644 index 000000000..b56a7f887 --- /dev/null +++ b/keyboards/misonoworks/karina/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Karina | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 35% keyboard with two rotary encoders and an LED bar. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [MisonoWorks](https://github.com/autumnisacutie/) | ||
| 8 | * Hardware Supported: Karina V1 PCB | ||
| 9 | * Hardware Availability: [P3D Store](https://p3dstore.com/) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make misonoworks/karina:default | ||
| 14 | |||
| 15 | 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/misonoworks/karina/rules.mk b/keyboards/misonoworks/karina/rules.mk new file mode 100644 index 000000000..40ef41ff9 --- /dev/null +++ b/keyboards/misonoworks/karina/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes | ||
