diff options
| -rw-r--r-- | keyboards/mokey/README.md | 7 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/config.h | 40 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/info.json | 152 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/keymaps/default/keymap.c | 30 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/keymaps/via/keymap.c | 47 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/mokey63.c | 15 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/mokey63.h | 75 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/mokey/mokey63/rules.mk | 23 |
10 files changed, 411 insertions, 0 deletions
diff --git a/keyboards/mokey/README.md b/keyboards/mokey/README.md new file mode 100644 index 000000000..3a878ea8e --- /dev/null +++ b/keyboards/mokey/README.md | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Mokey PCB | ||
| 2 | |||
| 3 | This is a series of PCB | ||
| 4 | * Mokey63 multi-column,The chip is ATmega32U4 | ||
| 5 | * Mokey64 The chip is STM32F401 | ||
| 6 | |||
| 7 | |||
diff --git a/keyboards/mokey/mokey63/config.h b/keyboards/mokey/mokey63/config.h new file mode 100644 index 000000000..504a27414 --- /dev/null +++ b/keyboards/mokey/mokey63/config.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Kyle McCreery | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #pragma once | ||
| 16 | |||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x6653 | ||
| 21 | #define PRODUCT_ID 0x063A | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER rhmokey | ||
| 24 | #define PRODUCT MOKEY63 | ||
| 25 | |||
| 26 | /* key matrix size */ | ||
| 27 | #define MATRIX_ROWS 5 | ||
| 28 | #define MATRIX_COLS 15 | ||
| 29 | |||
| 30 | #define MATRIX_ROW_PINS { B5, B6, B2, B3, B1 } | ||
| 31 | #define MATRIX_COL_PINS { C7, F6, F5, F4, F1, E6, D0, D1, D2, D3, D5, D4, D6, D7, B4 } | ||
| 32 | #define UNUSED_PINS | ||
| 33 | |||
| 34 | /* COL2ROW, ROW2COL*/ | ||
| 35 | #define DIODE_DIRECTION COL2ROW | ||
| 36 | |||
| 37 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 38 | #define DEBOUNCE 5 | ||
| 39 | |||
| 40 | |||
diff --git a/keyboards/mokey/mokey63/info.json b/keyboards/mokey/mokey63/info.json new file mode 100644 index 000000000..476667dfb --- /dev/null +++ b/keyboards/mokey/mokey63/info.json | |||
| @@ -0,0 +1,152 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Mokey63", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "mokey", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"k00", "x":0, "y":0}, | ||
| 9 | {"label":"k01", "x":1, "y":0}, | ||
| 10 | {"label":"k02", "x":2, "y":0}, | ||
| 11 | {"label":"k03", "x":3, "y":0}, | ||
| 12 | {"label":"k04", "x":4, "y":0}, | ||
| 13 | {"label":"k05", "x":5, "y":0}, | ||
| 14 | {"label":"k06", "x":6, "y":0}, | ||
| 15 | {"label":"k07", "x":7, "y":0}, | ||
| 16 | {"label":"k08", "x":8, "y":0}, | ||
| 17 | {"label":"k09", "x":9, "y":0}, | ||
| 18 | {"label":"k0a", "x":10, "y":0}, | ||
| 19 | {"label":"k0b", "x":11, "y":0}, | ||
| 20 | {"label":"k0c", "x":12, "y":0}, | ||
| 21 | {"label":"k0e", "x":13, "y":0, "w":2}, | ||
| 22 | |||
| 23 | {"label":"k10", "x":0, "y":1, "w":1.5}, | ||
| 24 | {"label":"k12", "x":1.5, "y":1}, | ||
| 25 | {"label":"k13", "x":2.5, "y":1}, | ||
| 26 | {"label":"k14", "x":3.5, "y":1}, | ||
| 27 | {"label":"k15", "x":4.5, "y":1}, | ||
| 28 | {"label":"k16", "x":5.5, "y":1}, | ||
| 29 | {"label":"k17", "x":6.5, "y":1}, | ||
| 30 | {"label":"k18", "x":7.5, "y":1}, | ||
| 31 | {"label":"k19", "x":8.5, "y":1}, | ||
| 32 | {"label":"k1a", "x":9.5, "y":1}, | ||
| 33 | {"label":"k1b", "x":10.5, "y":1}, | ||
| 34 | {"label":"k1c", "x":11.5, "y":1}, | ||
| 35 | {"label":"k1d", "x":12.5, "y":1}, | ||
| 36 | {"label":"k1e", "x":13.5, "y":1, "w":1.5}, | ||
| 37 | |||
| 38 | {"label":"k20", "x":0, "y":2, "w":1.75}, | ||
| 39 | {"label":"k22", "x":1.75, "y":2}, | ||
| 40 | {"label":"k23", "x":2.75, "y":2}, | ||
| 41 | {"label":"k24", "x":3.75, "y":2}, | ||
| 42 | {"label":"k25", "x":4.75, "y":2}, | ||
| 43 | {"label":"k26", "x":5.75, "y":2}, | ||
| 44 | {"label":"k27", "x":6.75, "y":2}, | ||
| 45 | {"label":"k28", "x":7.75, "y":2}, | ||
| 46 | {"label":"k29", "x":8.75, "y":2}, | ||
| 47 | {"label":"k2a", "x":9.75, "y":2}, | ||
| 48 | {"label":"k2b", "x":10.75, "y":2}, | ||
| 49 | {"label":"k2c", "x":11.75, "y":2}, | ||
| 50 | {"label":"k2d", "x":12.75, "y":2, "w":2.25}, | ||
| 51 | |||
| 52 | {"label":"k30", "x":0, "y":3, "w":2.25}, | ||
| 53 | {"label":"k32", "x":2, "y":3}, | ||
| 54 | {"label":"k33", "x":3, "y":3}, | ||
| 55 | {"label":"k34", "x":4, "y":3}, | ||
| 56 | {"label":"k35", "x":5, "y":3}, | ||
| 57 | {"label":"k36", "x":6, "y":3}, | ||
| 58 | {"label":"k37", "x":7, "y":3}, | ||
| 59 | {"label":"k38", "x":8, "y":3}, | ||
| 60 | {"label":"k39", "x":9, "y":3}, | ||
| 61 | {"label":"k3a", "x":10, "y":3}, | ||
| 62 | {"label":"k3c", "x":11, "y":3, "w":1.75}, | ||
| 63 | {"label":"k3d", "x":12, "y":3}, | ||
| 64 | {"label":"k3e", "x":13, "y":3}, | ||
| 65 | |||
| 66 | {"label":"k40", "x":0, "y":4, "w":1.25}, | ||
| 67 | {"label":"k41", "x":1.25, "y":4, "w":1.25}, | ||
| 68 | {"label":"k42", "x":2.5, "y":4, "w":1.25}, | ||
| 69 | {"label":"k46", "x":3.75, "y":4, "w":6.25}, | ||
| 70 | {"label":"k4a", "x":10, "y":4}, | ||
| 71 | {"label":"k4b", "x":11, "y":4}, | ||
| 72 | {"label":"k4c", "x":12, "y":4}, | ||
| 73 | {"label":"k4d", "x":13, "y":4}, | ||
| 74 | {"label":"k4e", "x":14, "y":4} | ||
| 75 | ] | ||
| 76 | }, | ||
| 77 | "LAYOUT_division":{ | ||
| 78 | "layout": [ | ||
| 79 | {"label":"k00", "x":0, "y":0}, | ||
| 80 | {"label":"k01", "x":1, "y":0}, | ||
| 81 | {"label":"k02", "x":2, "y":0}, | ||
| 82 | {"label":"k03", "x":3, "y":0}, | ||
| 83 | {"label":"k04", "x":4, "y":0}, | ||
| 84 | {"label":"k05", "x":5, "y":0}, | ||
| 85 | {"label":"k06", "x":6, "y":0}, | ||
| 86 | {"label":"k07", "x":7, "y":0}, | ||
| 87 | {"label":"k08", "x":8, "y":0}, | ||
| 88 | {"label":"k09", "x":9, "y":0}, | ||
| 89 | {"label":"k0a", "x":10, "y":0}, | ||
| 90 | {"label":"k0b", "x":11, "y":0}, | ||
| 91 | {"label":"k0c", "x":12, "y":0}, | ||
| 92 | {"label":"k0d", "x":13, "y":0}, | ||
| 93 | {"label":"k0e", "x":14, "y":0}, | ||
| 94 | |||
| 95 | {"label":"k10", "x":0, "y":1, "w":1.5}, | ||
| 96 | {"label":"k12", "x":1.5, "y":1}, | ||
| 97 | {"label":"k13", "x":2.5, "y":1}, | ||
| 98 | {"label":"k14", "x":3.5, "y":1}, | ||
| 99 | {"label":"k15", "x":4.5, "y":1}, | ||
| 100 | {"label":"k16", "x":5.5, "y":1}, | ||
| 101 | {"label":"k17", "x":6.5, "y":1}, | ||
| 102 | {"label":"k18", "x":7.5, "y":1}, | ||
| 103 | {"label":"k19", "x":8.5, "y":1}, | ||
| 104 | {"label":"k1a", "x":9.5, "y":1}, | ||
| 105 | {"label":"k1b", "x":10.5, "y":1}, | ||
| 106 | {"label":"k1c", "x":11.5, "y":1}, | ||
| 107 | {"label":"k1d", "x":12.5, "y":1}, | ||
| 108 | |||
| 109 | {"label":"k20", "x":0, "y":2, "w":1.75}, | ||
| 110 | {"label":"k22", "x":1.75, "y":2}, | ||
| 111 | {"label":"k23", "x":2.75, "y":2}, | ||
| 112 | {"label":"k24", "x":3.75, "y":2}, | ||
| 113 | {"label":"k25", "x":4.75, "y":2}, | ||
| 114 | {"label":"k26", "x":5.75, "y":2}, | ||
| 115 | {"label":"k27", "x":6.75, "y":2}, | ||
| 116 | {"label":"k28", "x":7.75, "y":2}, | ||
| 117 | {"label":"k29", "x":8.75, "y":2}, | ||
| 118 | {"label":"k2a", "x":9.75, "y":2}, | ||
| 119 | {"label":"k2b", "x":10.75, "y":2}, | ||
| 120 | {"label":"k2c", "x":11.75, "y":2}, | ||
| 121 | {"label":"k1e", "x":12.75, "y":2}, | ||
| 122 | {"label":"k2d", "x":13.75, "y":1, "w": 1.25, "h": 2}, | ||
| 123 | |||
| 124 | {"label":"k30", "x":0, "y":3, "w":2.25}, | ||
| 125 | {"label":"k32", "x":2, "y":3}, | ||
| 126 | {"label":"k33", "x":3, "y":3}, | ||
| 127 | {"label":"k34", "x":4, "y":3}, | ||
| 128 | {"label":"k35", "x":5, "y":3}, | ||
| 129 | {"label":"k36", "x":6, "y":3}, | ||
| 130 | {"label":"k37", "x":7, "y":3}, | ||
| 131 | {"label":"k38", "x":8, "y":3}, | ||
| 132 | {"label":"k39", "x":9, "y":3}, | ||
| 133 | {"label":"k3a", "x":10, "y":3}, | ||
| 134 | {"label":"k3c", "x":11, "y":3, "w":1.75}, | ||
| 135 | {"label":"k3d", "x":12, "y":3}, | ||
| 136 | {"label":"k3e", "x":13, "y":3}, | ||
| 137 | |||
| 138 | {"label":"k40", "x":0, "y":4, "w":1.25}, | ||
| 139 | {"label":"k41", "x":1.25, "y":4, "w":1.25}, | ||
| 140 | {"label":"k43", "x":2.5, "y":4, "w":1.25}, | ||
| 141 | {"label":"k44", "x":3.75, "y":4, "w":2.25}, | ||
| 142 | {"label":"k46", "x":6, "y":4, "w":1.25}, | ||
| 143 | {"label":"k48", "x":7.25, "y":4, "w":2.75}, | ||
| 144 | {"label":"k4a", "x":10, "y":4}, | ||
| 145 | {"label":"k4b", "x":11, "y":4}, | ||
| 146 | {"label":"k4c", "x":12, "y":4}, | ||
| 147 | {"label":"k4d", "x":13, "y":4}, | ||
| 148 | {"label":"k4e", "x":14, "y":4} | ||
| 149 | ] | ||
| 150 | } | ||
| 151 | } | ||
| 152 | } \ No newline at end of file | ||
diff --git a/keyboards/mokey/mokey63/keymaps/default/keymap.c b/keyboards/mokey/mokey63/keymaps/default/keymap.c new file mode 100644 index 000000000..187b5a7e6 --- /dev/null +++ b/keyboards/mokey/mokey63/keymaps/default/keymap.c | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* Copyright 2021 Ocean | ||
| 2 | * This program is free software: you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation, either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT( | ||
| 21 | 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, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 24 | KC_LSFT, KC_GRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_DEL, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | }; | ||
| 28 | |||
| 29 | |||
| 30 | |||
diff --git a/keyboards/mokey/mokey63/keymaps/via/keymap.c b/keyboards/mokey/mokey63/keymaps/via/keymap.c new file mode 100644 index 000000000..6f7f1b60e --- /dev/null +++ b/keyboards/mokey/mokey63/keymaps/via/keymap.c | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* Copyright 2021 Ocean | ||
| 2 | * This program is free software: you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation, either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT( | ||
| 21 | 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_BSPC, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 24 | KC_LSFT, KC_GRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_DEL, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT, | ||
| 26 | |||
| 27 | [1] = LAYOUT( | ||
| 28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 33 | |||
| 34 | [2] = LAYOUT( | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 40 | |||
| 41 | [3] = LAYOUT( | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 47 | }; | ||
diff --git a/keyboards/mokey/mokey63/keymaps/via/rules.mk b/keyboards/mokey/mokey63/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/mokey/mokey63/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/mokey/mokey63/mokey63.c b/keyboards/mokey/mokey63/mokey63.c new file mode 100644 index 000000000..ea30335a8 --- /dev/null +++ b/keyboards/mokey/mokey63/mokey63.c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | /* Copyright 2021 Ocean | ||
| 2 | * This program is free software: you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation, either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 14 | */ | ||
| 15 | #include "mokey63.h" | ||
diff --git a/keyboards/mokey/mokey63/mokey63.h b/keyboards/mokey/mokey63/mokey63.h new file mode 100644 index 000000000..d91afed3f --- /dev/null +++ b/keyboards/mokey/mokey63/mokey63.h | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | /* Copyright 2021 Ocean | ||
| 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 | |||
| 21 | #define XXX KC_NO | ||
| 22 | /* | ||
| 23 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 24 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0e │ | ||
| 25 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
| 26 | * │10 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 27 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | ||
| 28 | * │20 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2d │ | ||
| 29 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┬───┤ | ||
| 30 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3c │3d │3e │ | ||
| 31 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬───┼───┼───┤ | ||
| 32 | * │40 │41 │43 │46 │4a │4b │4c │4d │4e │ | ||
| 33 | * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | ||
| 34 | */ | ||
| 35 | #define LAYOUT( \ | ||
| 36 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \ | ||
| 37 | k10, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, \ | ||
| 38 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, \ | ||
| 39 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3c, k3d, k3e, \ | ||
| 40 | k40, k41, k43, k46, k4a, k4b, k4c, k4d, k4e \ | ||
| 41 | ) { \ | ||
| 42 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO, k0e }, \ | ||
| 43 | { k10, KC_NO, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e }, \ | ||
| 44 | { k20, KC_NO, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, KC_NO }, \ | ||
| 45 | { k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, KC_NO, k3c, k3d, k3e }, \ | ||
| 46 | { k40, k41, KC_NO, k43, KC_NO, KC_NO, k46, KC_NO, KC_NO, KC_NO, k4a, k4b, k4c, k4d, k4e } \ | ||
| 47 | } | ||
| 48 | |||
| 49 | |||
| 50 | /* | ||
| 51 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ | ||
| 52 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │0e │ | ||
| 53 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ | ||
| 54 | * │10 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │ │ | ||
| 55 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ 2d │ | ||
| 56 | * │20 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │1e │ │ | ||
| 57 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬──┴┬───┤ | ||
| 58 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3c │3d │3e │ | ||
| 59 | * ├────┬───┴┬──┴─┬─┴───┴──┬┴───┴───┼───┴──┬┴──┬┴──┬───┼───┼───┤ | ||
| 60 | * │40 │41 │43 │44 │46 │48 │4a │4b │4c │4d │4e │ | ||
| 61 | * └────┴────┴────┴────────┴────────┴──────┴───┴───┴───┴───┴───┘ | ||
| 62 | */ | ||
| 63 | #define LAYOUT_division( \ | ||
| 64 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 65 | k10, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
| 66 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k1e, k2d, \ | ||
| 67 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3c, k3d, k3e, \ | ||
| 68 | k40, k41, k43, k44, k46, k48, k4a, k4b, k4c, k4d, k4e \ | ||
| 69 | ) { \ | ||
| 70 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e }, \ | ||
| 71 | { k10, KC_NO, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, KC_NO }, \ | ||
| 72 | { k20, KC_NO, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k1e, k2d }, \ | ||
| 73 | { k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, KC_NO, k3c, k3d, k3e }, \ | ||
| 74 | { k40, k41, KC_NO, k43, k44, KC_NO, k46, KC_NO, k48, KC_NO, k4a, k4b, k4c, k4d, k4e } \ | ||
| 75 | } | ||
diff --git a/keyboards/mokey/mokey63/readme.md b/keyboards/mokey/mokey63/readme.md new file mode 100644 index 000000000..461be07cb --- /dev/null +++ b/keyboards/mokey/mokey63/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MOKEY 63 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 63% variable multi row PCB | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [rhmokey](https://www.mokey.vip) | ||
| 8 | * Hardware Supported: Atmega32u4 | ||
| 9 | ## Bootloader | ||
| 10 | * **Physical reset button**: Short press the button on the back of the PCB to enter the Bootloader and flash the firmware | ||
| 11 | |||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make mokey/mokey63:default | ||
| 16 | |||
| 17 | Flashing example for this keyboard: | ||
| 18 | |||
| 19 | make mokey/mokey63:default:flash | ||
| 20 | |||
| 21 | 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/mokey/mokey63/rules.mk b/keyboards/mokey/mokey63/rules.mk new file mode 100644 index 000000000..c7ccf409f --- /dev/null +++ b/keyboards/mokey/mokey63/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 = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = no # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
