diff options
| author | mechlovin <57231893+mechlovin@users.noreply.github.com> | 2022-01-11 08:08:32 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 17:08:32 -0800 |
| commit | ffebc0407c75df06159fc136b8875f18b56f45fd (patch) | |
| tree | 88a7b456e8a0cc6c21c6ff32522f4025a96401cf | |
| parent | adaaee4edf485374362347198183f0cbdc42e418 (diff) | |
| download | qmk_firmware-ffebc0407c75df06159fc136b8875f18b56f45fd.tar.gz qmk_firmware-ffebc0407c75df06159fc136b8875f18b56f45fd.zip | |
[Keyboard] Add Kay60 PCB (#15566)
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/mechlovin/kay60/config.h | 136 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/info.json | 147 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/kay60.c | 17 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/kay60.h | 66 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/keymaps/default/keymap.c | 36 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/keymaps/via/keymap.c | 50 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/readme.md | 26 | ||||
| -rw-r--r-- | keyboards/mechlovin/kay60/rules.mk | 18 |
10 files changed, 498 insertions, 0 deletions
diff --git a/keyboards/mechlovin/kay60/config.h b/keyboards/mechlovin/kay60/config.h new file mode 100644 index 000000000..ae321a649 --- /dev/null +++ b/keyboards/mechlovin/kay60/config.h | |||
| @@ -0,0 +1,136 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Mechlovin' | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x4D4C | ||
| 24 | #define PRODUCT_ID 0x0601 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Mechlovin Studio | ||
| 27 | #define PRODUCT Kay60 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 14 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { D5, D3, D2, B1, B5} | ||
| 44 | #define MATRIX_COL_PINS { E6, F0, F1, F4, F5, F6, F7, B2, B3, B7, B4, D7, D6, D4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | //#define LED_NUM_LOCK_PIN B0 | ||
| 51 | #define LED_CAPS_LOCK_PIN B0 | ||
| 52 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 53 | //#define LED_COMPOSE_PIN B3 | ||
| 54 | //#define LED_KANA_PIN B4 | ||
| 55 | |||
| 56 | //#define BACKLIGHT_PIN B7 | ||
| 57 | //#define BACKLIGHT_LEVELS 3 | ||
| 58 | //#define BACKLIGHT_BREATHING | ||
| 59 | |||
| 60 | #define RGB_DI_PIN E2 | ||
| 61 | #ifdef RGB_DI_PIN | ||
| 62 | # define RGBLED_NUM 22 | ||
| 63 | # define RGBLIGHT_HUE_STEP 8 | ||
| 64 | # define RGBLIGHT_SAT_STEP 8 | ||
| 65 | # define RGBLIGHT_VAL_STEP 8 | ||
| 66 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 67 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 68 | /*== all animations enable ==*/ | ||
| 69 | //# define RGBLIGHT_ANIMATIONS | ||
| 70 | /*== or choose animations ==*/ | ||
| 71 | # define RGBLIGHT_EFFECT_BREATHING | ||
| 72 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 73 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 74 | # define RGBLIGHT_EFFECT_SNAKE | ||
| 75 | # define RGBLIGHT_EFFECT_KNIGHT | ||
| 76 | # define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 77 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 78 | # define RGBLIGHT_EFFECT_RGB_TEST | ||
| 79 | # define RGBLIGHT_EFFECT_ALTERNATING | ||
| 80 | # define RGBLIGHT_EFFECT_TWINKLE | ||
| 81 | /*== customize breathing effect ==*/ | ||
| 82 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 83 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 84 | /*==== use exp() and sin() ====*/ | ||
| 85 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 86 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 87 | #endif | ||
| 88 | |||
| 89 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 90 | //#define MATRIX_HAS_GHOST | ||
| 91 | |||
| 92 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 93 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 94 | */ | ||
| 95 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 96 | |||
| 97 | /* | ||
| 98 | * Force NKRO | ||
| 99 | * | ||
| 100 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 101 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 102 | * makefile for this to work.) | ||
| 103 | * | ||
| 104 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 105 | * until the next keyboard reset. | ||
| 106 | * | ||
| 107 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 108 | * fully operational during normal computer usage. | ||
| 109 | * | ||
| 110 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 111 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 112 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 113 | * power-up. | ||
| 114 | * | ||
| 115 | */ | ||
| 116 | //#define FORCE_NKRO | ||
| 117 | |||
| 118 | /* | ||
| 119 | * Feature disable options | ||
| 120 | * These options are also useful to firmware size reduction. | ||
| 121 | */ | ||
| 122 | |||
| 123 | /* disable debug print */ | ||
| 124 | //#define NO_DEBUG | ||
| 125 | |||
| 126 | /* disable print */ | ||
| 127 | //#define NO_PRINT | ||
| 128 | |||
| 129 | /* disable action features */ | ||
| 130 | //#define NO_ACTION_LAYER | ||
| 131 | //#define NO_ACTION_TAPPING | ||
| 132 | //#define NO_ACTION_ONESHOT | ||
| 133 | |||
| 134 | /* Bootmagic Lite key configuration */ | ||
| 135 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 136 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/mechlovin/kay60/info.json b/keyboards/mechlovin/kay60/info.json new file mode 100644 index 000000000..513dcef12 --- /dev/null +++ b/keyboards/mechlovin/kay60/info.json | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "kay60", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Mechlovin' Studio", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_all": { | ||
| 7 | "layout": [ | ||
| 8 | {"x": 0, "y": 0}, | ||
| 9 | {"x": 1, "y": 0}, | ||
| 10 | {"x": 2, "y": 0}, | ||
| 11 | {"x": 3, "y": 0}, | ||
| 12 | {"x": 4, "y": 0}, | ||
| 13 | {"x": 5, "y": 0}, | ||
| 14 | {"x": 6, "y": 0}, | ||
| 15 | {"x": 7, "y": 0}, | ||
| 16 | {"x": 8, "y": 0}, | ||
| 17 | {"x": 9, "y": 0}, | ||
| 18 | {"x": 10, "y": 0}, | ||
| 19 | {"x": 11, "y": 0}, | ||
| 20 | {"x": 12, "y": 0}, | ||
| 21 | {"x": 13, "y": 0}, | ||
| 22 | {"x": 14, "y": 0}, | ||
| 23 | |||
| 24 | {"x": 0, "y": 1, "w": 1.5}, | ||
| 25 | {"x": 1.5, "y": 1}, | ||
| 26 | {"x": 2.5, "y": 1}, | ||
| 27 | {"x": 3.5, "y": 1}, | ||
| 28 | {"x": 4.5, "y": 1}, | ||
| 29 | {"x": 5.5, "y": 1}, | ||
| 30 | {"x": 6.5, "y": 1}, | ||
| 31 | {"x": 7.5, "y": 1}, | ||
| 32 | {"x": 8.5, "y": 1}, | ||
| 33 | {"x": 9.5, "y": 1}, | ||
| 34 | {"x": 10.5, "y": 1}, | ||
| 35 | {"x": 11.5, "y": 1}, | ||
| 36 | {"x": 12.5, "y": 1}, | ||
| 37 | {"x": 13.5, "y": 1, "w": 1.5}, | ||
| 38 | |||
| 39 | {"x": 0, "y": 2, "w": 1.75}, | ||
| 40 | {"x": 1.75, "y": 2}, | ||
| 41 | {"x": 2.75, "y": 2}, | ||
| 42 | {"x": 3.75, "y": 2}, | ||
| 43 | {"x": 4.75, "y": 2}, | ||
| 44 | {"x": 5.75, "y": 2}, | ||
| 45 | {"x": 6.75, "y": 2}, | ||
| 46 | {"x": 7.75, "y": 2}, | ||
| 47 | {"x": 8.75, "y": 2}, | ||
| 48 | {"x": 9.75, "y": 2}, | ||
| 49 | {"x": 10.75, "y": 2}, | ||
| 50 | {"x": 11.75, "y": 2}, | ||
| 51 | {"x": 12.75, "y": 2, "w": 2.25}, | ||
| 52 | |||
| 53 | {"x": 0, "y": 3, "w": 2.25}, | ||
| 54 | {"x": 2.25, "y": 3}, | ||
| 55 | {"x": 3.25, "y": 3}, | ||
| 56 | {"x": 4.25, "y": 3}, | ||
| 57 | {"x": 5.25, "y": 3}, | ||
| 58 | {"x": 6.25, "y": 3}, | ||
| 59 | {"x": 7.25, "y": 3}, | ||
| 60 | {"x": 8.25, "y": 3}, | ||
| 61 | {"x": 9.25, "y": 3}, | ||
| 62 | {"x": 10.25, "y": 3}, | ||
| 63 | {"x": 11.25, "y": 3}, | ||
| 64 | {"x": 12.25, "y": 3, "w": 1.75}, | ||
| 65 | {"x": 14, "y": 3}, | ||
| 66 | |||
| 67 | {"x": 0, "y": 4, "w": 1.25}, | ||
| 68 | {"x": 1.25, "y": 4, "w": 1.25}, | ||
| 69 | {"x": 2.5, "y": 4, "w": 1.25}, | ||
| 70 | {"x": 3.75, "y": 4, "w": 6.25}, | ||
| 71 | {"x": 10, "y": 4, "w": 1.25}, | ||
| 72 | {"x": 11.25, "y": 4, "w": 1.25}, | ||
| 73 | {"x": 12.5, "y": 4, "w": 1.25}, | ||
| 74 | {"x": 13.75, "y": 4, "w": 1.25} | ||
| 75 | ] | ||
| 76 | }, | ||
| 77 | "LAYOUT_ansi": { | ||
| 78 | "layout": [ | ||
| 79 | {"x": 0, "y": 0}, | ||
| 80 | {"x": 1, "y": 0}, | ||
| 81 | {"x": 2, "y": 0}, | ||
| 82 | {"x": 3, "y": 0}, | ||
| 83 | {"x": 4, "y": 0}, | ||
| 84 | {"x": 5, "y": 0}, | ||
| 85 | {"x": 6, "y": 0}, | ||
| 86 | {"x": 7, "y": 0}, | ||
| 87 | {"x": 8, "y": 0}, | ||
| 88 | {"x": 9, "y": 0}, | ||
| 89 | {"x": 10, "y": 0}, | ||
| 90 | {"x": 11, "y": 0}, | ||
| 91 | {"x": 12, "y": 0}, | ||
| 92 | {"x": 13, "y": 0, "w": 2}, | ||
| 93 | |||
| 94 | {"x": 0, "y": 1, "w": 1.5}, | ||
| 95 | {"x": 1.5, "y": 1}, | ||
| 96 | {"x": 2.5, "y": 1}, | ||
| 97 | {"x": 3.5, "y": 1}, | ||
| 98 | {"x": 4.5, "y": 1}, | ||
| 99 | {"x": 5.5, "y": 1}, | ||
| 100 | {"x": 6.5, "y": 1}, | ||
| 101 | {"x": 7.5, "y": 1}, | ||
| 102 | {"x": 8.5, "y": 1}, | ||
| 103 | {"x": 9.5, "y": 1}, | ||
| 104 | {"x": 10.5, "y": 1}, | ||
| 105 | {"x": 11.5, "y": 1}, | ||
| 106 | {"x": 12.5, "y": 1}, | ||
| 107 | {"x": 13.5, "y": 1, "w": 1.5}, | ||
| 108 | |||
| 109 | {"x": 0, "y": 2, "w": 1.75}, | ||
| 110 | {"x": 1.75, "y": 2}, | ||
| 111 | {"x": 2.75, "y": 2}, | ||
| 112 | {"x": 3.75, "y": 2}, | ||
| 113 | {"x": 4.75, "y": 2}, | ||
| 114 | {"x": 5.75, "y": 2}, | ||
| 115 | {"x": 6.75, "y": 2}, | ||
| 116 | {"x": 7.75, "y": 2}, | ||
| 117 | {"x": 8.75, "y": 2}, | ||
| 118 | {"x": 9.75, "y": 2}, | ||
| 119 | {"x": 10.75, "y": 2}, | ||
| 120 | {"x": 11.75, "y": 2}, | ||
| 121 | {"x": 12.75, "y": 2, "w": 2.25}, | ||
| 122 | |||
| 123 | {"x": 0, "y": 3, "w": 2.25}, | ||
| 124 | {"x": 2.25, "y": 3}, | ||
| 125 | {"x": 3.25, "y": 3}, | ||
| 126 | {"x": 4.25, "y": 3}, | ||
| 127 | {"x": 5.25, "y": 3}, | ||
| 128 | {"x": 6.25, "y": 3}, | ||
| 129 | {"x": 7.25, "y": 3}, | ||
| 130 | {"x": 8.25, "y": 3}, | ||
| 131 | {"x": 9.25, "y": 3}, | ||
| 132 | {"x": 10.25, "y": 3}, | ||
| 133 | {"x": 11.25, "y": 3}, | ||
| 134 | {"x": 12.25, "y": 3, "w": 2.75}, | ||
| 135 | |||
| 136 | {"x": 0, "y": 4, "w": 1.25}, | ||
| 137 | {"x": 1.25, "y": 4, "w": 1.25}, | ||
| 138 | {"x": 2.5, "y": 4, "w": 1.25}, | ||
| 139 | {"x": 3.75, "y": 4, "w": 6.25}, | ||
| 140 | {"x": 10, "y": 4, "w": 1.25}, | ||
| 141 | {"x": 11.25, "y": 4, "w": 1.25}, | ||
| 142 | {"x": 12.5, "y": 4, "w": 1.25}, | ||
| 143 | {"x": 13.75, "y": 4, "w": 1.25} | ||
| 144 | ] | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
diff --git a/keyboards/mechlovin/kay60/kay60.c b/keyboards/mechlovin/kay60/kay60.c new file mode 100644 index 000000000..61d968e48 --- /dev/null +++ b/keyboards/mechlovin/kay60/kay60.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Mechlovin' | ||
| 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 "kay60.h" | ||
diff --git a/keyboards/mechlovin/kay60/kay60.h b/keyboards/mechlovin/kay60/kay60.h new file mode 100644 index 000000000..52e2bb489 --- /dev/null +++ b/keyboards/mechlovin/kay60/kay60.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* Copyright 2021 Mechlovin' | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | #define XXX KC_NO | ||
| 21 | |||
| 22 | /* | ||
| 23 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───────┐ | ||
| 24 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │2C │ │0D │ 2u Backspace | ||
| 25 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ └───────┘ | ||
| 26 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │ | ||
| 27 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | ||
| 28 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2D │ | ||
| 29 | ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ┌──────────┐ | ||
| 30 | │30 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3C │3D │ │3C │ 2.75u RShift | ||
| 31 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤ └──────────┘ | ||
| 32 | * │40 │41 │42 │46 │4A │4B │4C │4D │ Standard | ||
| 33 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
| 34 | * ┌─────┬───┬─────┬───────────────────────────┬─────┬───┬─────┐ | ||
| 35 | * │40 │41 │42 │46 │4B │4C │4D │ Tsangan/WKL | ||
| 36 | * └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘ | ||
| 37 | */ | ||
| 38 | |||
| 39 | #define LAYOUT_all( \ | ||
| 40 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2C, \ | ||
| 41 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 42 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
| 43 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \ | ||
| 44 | K40, K41, K42, K46, K4A, K4B, K4C, K4D \ | ||
| 45 | ) { \ | ||
| 46 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 47 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 48 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 49 | { K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \ | ||
| 50 | { K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D }, \ | ||
| 51 | } | ||
| 52 | |||
| 53 | #define LAYOUT_60_ansi( \ | ||
| 54 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
| 55 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 56 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
| 57 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 58 | K40, K41, K42, K46, K4A, K4B, K4C, K4D \ | ||
| 59 | ) { \ | ||
| 60 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 61 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 62 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2D }, \ | ||
| 63 | { K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, XXX }, \ | ||
| 64 | { K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D }, \ | ||
| 65 | } | ||
| 66 | |||
diff --git a/keyboards/mechlovin/kay60/keymaps/default/keymap.c b/keyboards/mechlovin/kay60/keymaps/default/keymap.c new file mode 100644 index 000000000..10546ece4 --- /dev/null +++ b/keyboards/mechlovin/kay60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2021 Mechlovin' Studio | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #define LT1_CAP LT(1, KC_CAPS) | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 24 | LT1_CAP, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, TO(1), | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, KC_LGUI, KC_MENU, KC_LCTL | ||
| 27 | ), | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, KC_PENT, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, KC_P0, KC_P1, KC_P2, KC_P3, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ), | ||
| 35 | |||
| 36 | }; | ||
diff --git a/keyboards/mechlovin/kay60/keymaps/default/readme.md b/keyboards/mechlovin/kay60/keymaps/default/readme.md new file mode 100644 index 000000000..17a9cf38c --- /dev/null +++ b/keyboards/mechlovin/kay60/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for kay60 \ No newline at end of file | |||
diff --git a/keyboards/mechlovin/kay60/keymaps/via/keymap.c b/keyboards/mechlovin/kay60/keymaps/via/keymap.c new file mode 100644 index 000000000..34b8cb982 --- /dev/null +++ b/keyboards/mechlovin/kay60/keymaps/via/keymap.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2020 Mechlovin' | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #define LT1_CAP LT(1, KC_CAPS) | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 24 | LT1_CAP, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, TO(1), | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, KC_LGUI, KC_MENU, KC_LCTL | ||
| 27 | ), | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, KC_PENT, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, KC_P0, KC_P1, KC_P2, KC_P3, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ), | ||
| 35 | [2] = LAYOUT_all( | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 41 | ), | ||
| 42 | [3] = LAYOUT_all( | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | |||
| 50 | }; | ||
diff --git a/keyboards/mechlovin/kay60/keymaps/via/rules.mk b/keyboards/mechlovin/kay60/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/mechlovin/kay60/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/mechlovin/kay60/readme.md b/keyboards/mechlovin/kay60/readme.md new file mode 100644 index 000000000..cc53c1317 --- /dev/null +++ b/keyboards/mechlovin/kay60/readme.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # kay60 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Kay60 PCB, 60% keyboard PCB. | ||
| 6 | * Keyboard Maintainer: [Mechlovin'](https://mechlovin.studio) | ||
| 7 | * Hardware Supported: Kay60, Atmega32U4 | ||
| 8 | * Hardware Availability: [Mechlovin'](https://mechlovin.studio) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make mechlovin/kay60:default | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | make mechlovin/kay60:default:flash | ||
| 17 | |||
| 18 | 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). | ||
| 19 | |||
| 20 | ## Bootloader | ||
| 21 | |||
| 22 | Enter the bootloader in 3 ways: | ||
| 23 | |||
| 24 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 25 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
| 26 | * **Physic button**: Press reset swith on the bottom of the PCB | ||
diff --git a/keyboards/mechlovin/kay60/rules.mk b/keyboards/mechlovin/kay60/rules.mk new file mode 100644 index 000000000..f3ae57a37 --- /dev/null +++ b/keyboards/mechlovin/kay60/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 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 = yes # Enable Bootmagic Lite | ||
| 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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
