diff options
| author | QMK Bot <hello@qmk.fm> | 2021-09-21 21:15:41 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-09-21 21:15:41 +0000 |
| commit | af9e4ec768bc2341eced66eca6019ab980c91dec (patch) | |
| tree | 6f25942f03d0223457cad8914fa597a560beb404 | |
| parent | f643bdb2abb7a60d79102c3d5b976ee660e642a4 (diff) | |
| parent | bd0040068e28b6df20693df2453591fc8f3f073a (diff) | |
| download | qmk_firmware-af9e4ec768bc2341eced66eca6019ab980c91dec.tar.gz qmk_firmware-af9e4ec768bc2341eced66eca6019ab980c91dec.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/kopibeng/mnk88/chconf.h | 31 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/config.h | 82 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/info.json | 102 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/keymaps/default/keymap.c | 61 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/keymaps/via/keymap.c | 61 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/mnk88.c | 36 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/mnk88.h | 39 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/kopibeng/mnk88/rules.mk | 25 |
10 files changed, 457 insertions, 0 deletions
diff --git a/keyboards/kopibeng/mnk88/chconf.h b/keyboards/kopibeng/mnk88/chconf.h new file mode 100644 index 000000000..5d57f9aec --- /dev/null +++ b/keyboards/kopibeng/mnk88/chconf.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2021 QMK | ||
| 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 | /* | ||
| 18 | * This file was auto-generated by: | ||
| 19 | * `qmk chibios-confmigrate -i keyboards/kopibeng/xt8x/chconf.h -r platforms/chibios/common/configs/chconf.h` | ||
| 20 | */ | ||
| 21 | |||
| 22 | #pragma once | ||
| 23 | |||
| 24 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 25 | |||
| 26 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
| 27 | |||
| 28 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 29 | |||
| 30 | #include_next <chconf.h> | ||
| 31 | |||
diff --git a/keyboards/kopibeng/mnk88/config.h b/keyboards/kopibeng/mnk88/config.h new file mode 100644 index 000000000..d8b442252 --- /dev/null +++ b/keyboards/kopibeng/mnk88/config.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | /* Copyright 2021 Samuel Lu | ||
| 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 "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4B50 // 'KP' kopibeng | ||
| 23 | #define PRODUCT_ID 0x8800 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER kopibeng | ||
| 26 | #define PRODUCT MNK88 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 6 | ||
| 30 | #define MATRIX_COLS 17 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { A8, B15, A9, B12, A3, B14 } | ||
| 43 | #define MATRIX_COL_PINS { A2, A1, A0, B11, B10, B2, F1, B1, B0, A7, A6, A5, F0, A4, C15, C14, C13 } | ||
| 44 | |||
| 45 | /* COL2ROW, ROW2COL*/ | ||
| 46 | #define DIODE_DIRECTION COL2ROW | ||
| 47 | |||
| 48 | #define LED_CAPS_LOCK_PIN B3 | ||
| 49 | #define LED_SCROLL_LOCK_PIN A15 | ||
| 50 | |||
| 51 | #define RGB_DI_PIN A10 | ||
| 52 | #ifdef RGB_DI_PIN | ||
| 53 | #define RGBLED_NUM 19 | ||
| 54 | #define RGBLIGHT_HUE_STEP 8 | ||
| 55 | #define RGBLIGHT_SAT_STEP 8 | ||
| 56 | #define RGBLIGHT_VAL_STEP 8 | ||
| 57 | #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */ | ||
| 58 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 59 | /*== all animations enable ==*/ | ||
| 60 | // #define RGBLIGHT_ANIMATIONS | ||
| 61 | // /*== or choose animations ==*/ | ||
| 62 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 63 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 64 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 65 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 66 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 67 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 68 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 69 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 70 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 71 | #endif | ||
| 72 | |||
| 73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 74 | #define DEBOUNCE 5 | ||
| 75 | |||
| 76 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 77 | //#define MATRIX_HAS_GHOST | ||
| 78 | |||
| 79 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 80 | #define LOCKING_SUPPORT_ENABLE | ||
| 81 | /* Locking resynchronize hack */ | ||
| 82 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/kopibeng/mnk88/info.json b/keyboards/kopibeng/mnk88/info.json new file mode 100644 index 000000000..f8e313f61 --- /dev/null +++ b/keyboards/kopibeng/mnk88/info.json | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "MNK88", | ||
| 3 | "maintainer": "kopibeng", | ||
| 4 | "url": "https://monokei.co/", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_all": { | ||
| 7 | "layout": [ | ||
| 8 | { "label": "0,0", "x": 0, "y": 0 }, | ||
| 9 | { "label": "0,1", "x": 1.25, "y": 0 }, | ||
| 10 | { "label": "0,2", "x": 2.25, "y": 0 }, | ||
| 11 | { "label": "0,3", "x": 3.25, "y": 0 }, | ||
| 12 | { "label": "0,4", "x": 4.25, "y": 0 }, | ||
| 13 | { "label": "0,5", "x": 5.5, "y": 0 }, | ||
| 14 | { "label": "0,6", "x": 6.5, "y": 0 }, | ||
| 15 | { "label": "0,7", "x": 7.5, "y": 0 }, | ||
| 16 | { "label": "0,8", "x": 8.5, "y": 0 }, | ||
| 17 | { "label": "0,9", "x": 9.75, "y": 0 }, | ||
| 18 | { "label": "0,10", "x": 10.75, "y": 0 }, | ||
| 19 | { "label": "0,11", "x": 11.75, "y": 0 }, | ||
| 20 | { "label": "0,12", "x": 12.75, "y": 0 }, | ||
| 21 | { "label": "0,13", "x": 14, "y": 0 }, | ||
| 22 | { "label": "0,14", "x": 15.25, "y": 0 }, | ||
| 23 | { "label": "0,15", "x": 16.25, "y": 0 }, | ||
| 24 | { "label": "0,16", "x": 17.25, "y": 0 }, | ||
| 25 | { "label": "1,0", "x": 0, "y": 1.25 }, | ||
| 26 | { "label": "1,1", "x": 1, "y": 1.25 }, | ||
| 27 | { "label": "1,2", "x": 2, "y": 1.25 }, | ||
| 28 | { "label": "1,3", "x": 3, "y": 1.25 }, | ||
| 29 | { "label": "1,4", "x": 4, "y": 1.25 }, | ||
| 30 | { "label": "1,5", "x": 5, "y": 1.25 }, | ||
| 31 | { "label": "1,6", "x": 6, "y": 1.25 }, | ||
| 32 | { "label": "1,7", "x": 7, "y": 1.25 }, | ||
| 33 | { "label": "1,8", "x": 8, "y": 1.25 }, | ||
| 34 | { "label": "1,9", "x": 9, "y": 1.25 }, | ||
| 35 | { "label": "1,10", "x": 10, "y": 1.25 }, | ||
| 36 | { "label": "1,11", "x": 11, "y": 1.25 }, | ||
| 37 | { "label": "1,12", "x": 12, "y": 1.25 }, | ||
| 38 | { "label": "2,12", "x": 13, "y": 1.25 }, | ||
| 39 | { "label": "1,13", "x": 14, "y": 1.25 }, | ||
| 40 | { "label": "1,14", "x": 15.25, "y": 1.25 }, | ||
| 41 | { "label": "1,15", "x": 16.25, "y": 1.25 }, | ||
| 42 | { "label": "1,16", "x": 17.25, "y": 1.25 }, | ||
| 43 | { "label": "2,0", "w": 1.5, "x": 0, "y": 2.25 }, | ||
| 44 | { "label": "2,1", "x": 1.5, "y": 2.25 }, | ||
| 45 | { "label": "2,2", "x": 2.5, "y": 2.25 }, | ||
| 46 | { "label": "2,3", "x": 3.5, "y": 2.25 }, | ||
| 47 | { "label": "2,4", "x": 4.5, "y": 2.25 }, | ||
| 48 | { "label": "2,5", "x": 5.5, "y": 2.25 }, | ||
| 49 | { "label": "2,6", "x": 6.5, "y": 2.25 }, | ||
| 50 | { "label": "2,7", "x": 7.5, "y": 2.25 }, | ||
| 51 | { "label": "2,8", "x": 8.5, "y": 2.25 }, | ||
| 52 | { "label": "2,9", "x": 9.5, "y": 2.25 }, | ||
| 53 | { "label": "2,10", "x": 10.5, "y": 2.25 }, | ||
| 54 | { "label": "2,11", "x": 11.5, "y": 2.25 }, | ||
| 55 | { "label": "3,12", "x": 12.5, "y": 2.25 }, | ||
| 56 | { "label": "2,13", "w": 1.5, "x": 13.5, "y": 2.25 }, | ||
| 57 | { "label": "2,14", "x": 15.25, "y": 2.25 }, | ||
| 58 | { "label": "2,15", "x": 16.25, "y": 2.25 }, | ||
| 59 | { "label": "2,16", "x": 17.25, "y": 2.25 }, | ||
| 60 | { "label": "3,0", "w": 1.75, "x": 0, "y": 3.25 }, | ||
| 61 | { "label": "3,1", "x": 1.75, "y": 3.25 }, | ||
| 62 | { "label": "3,2", "x": 2.75, "y": 3.25 }, | ||
| 63 | { "label": "3,3", "x": 3.75, "y": 3.25 }, | ||
| 64 | { "label": "3,4", "x": 4.75, "y": 3.25 }, | ||
| 65 | { "label": "3,5", "x": 5.75, "y": 3.25 }, | ||
| 66 | { "label": "3,6", "x": 6.75, "y": 3.25 }, | ||
| 67 | { "label": "3,7", "x": 7.75, "y": 3.25 }, | ||
| 68 | { "label": "3,8", "x": 8.75, "y": 3.25 }, | ||
| 69 | { "label": "3,9", "x": 9.75, "y": 3.25 }, | ||
| 70 | { "label": "3,10", "x": 10.75, "y": 3.25 }, | ||
| 71 | { "label": "3,11", "x": 11.75, "y": 3.25 }, | ||
| 72 | { "label": "3,13", "w": 2.25, "x": 12.75, "y": 3.25 }, | ||
| 73 | { "label": "4,0", "w": 1.25, "x": 0, "y": 4.25 }, | ||
| 74 | { "label": "4,1", "x": 1.25, "y": 4.25 }, | ||
| 75 | { "label": "4,2", "x": 2.25, "y": 4.25 }, | ||
| 76 | { "label": "4,3", "x": 3.25, "y": 4.25 }, | ||
| 77 | { "label": "4,4", "x": 4.25, "y": 4.25 }, | ||
| 78 | { "label": "4,5", "x": 5.25, "y": 4.25 }, | ||
| 79 | { "label": "4,6", "x": 6.25, "y": 4.25 }, | ||
| 80 | { "label": "4,7", "x": 7.25, "y": 4.25 }, | ||
| 81 | { "label": "4,8", "x": 8.25, "y": 4.25 }, | ||
| 82 | { "label": "4,9", "x": 9.25, "y": 4.25 }, | ||
| 83 | { "label": "4,10", "x": 10.25, "y": 4.25 }, | ||
| 84 | { "label": "4,11", "x": 11.25, "y": 4.25 }, | ||
| 85 | { "label": "4,12", "w": 1.75, "x": 12.25, "y": 4.25 }, | ||
| 86 | { "label": "4,13", "x": 14, "y": 4.25 }, | ||
| 87 | { "label": "4,15", "x": 16.25, "y": 4.25 }, | ||
| 88 | { "label": "5,0", "w": 1.25, "x": 0, "y": 5.25 }, | ||
| 89 | { "label": "5,1", "w": 1.25, "x": 1.25, "y": 5.25 }, | ||
| 90 | { "label": "5,2", "w": 1.25, "x": 2.5, "y": 5.25 }, | ||
| 91 | { "label": "5,6", "w": 6.25, "x": 3.75, "y": 5.25 }, | ||
| 92 | { "label": "5,10", "w": 1.25, "x": 10, "y": 5.25 }, | ||
| 93 | { "label": "5,11", "w": 1.25, "x": 11.25, "y": 5.25 }, | ||
| 94 | { "label": "5,12", "w": 1.25, "x": 12.5, "y": 5.25 }, | ||
| 95 | { "label": "5,13", "w": 1.25, "x": 13.75, "y": 5.25 }, | ||
| 96 | { "label": "5,14", "x": 15.25, "y": 5.25 }, | ||
| 97 | { "label": "5,15", "x": 16.25, "y": 5.25 }, | ||
| 98 | { "label": "4,16", "x": 17.25, "y": 5.25 } | ||
| 99 | ] | ||
| 100 | } | ||
| 101 | } | ||
| 102 | } \ No newline at end of file | ||
diff --git a/keyboards/kopibeng/mnk88/keymaps/default/keymap.c b/keyboards/kopibeng/mnk88/keymaps/default/keymap.c new file mode 100644 index 000000000..407daa098 --- /dev/null +++ b/keyboards/kopibeng/mnk88/keymaps/default/keymap.c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* Copyright 2021 Samuel Lu | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | // Default layer | ||
| 22 | [0] = LAYOUT_all( | ||
| 23 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 24 | KC_GRV, 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, KC_INS, KC_HOME, KC_PGUP, | ||
| 25 | 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, KC_DEL, KC_END, KC_PGDN, | ||
| 26 | 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, | ||
| 27 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(2), KC_UP, KC_RGHT, | ||
| 28 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN | ||
| 29 | ), | ||
| 30 | |||
| 31 | // Fn1 Layer | ||
| 32 | [1] = LAYOUT_all( | ||
| 33 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 34 | 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, KC_TRNS, KC_MPLY, KC_VOLU, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD, | ||
| 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, | ||
| 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, 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 | ||
| 39 | ), | ||
| 40 | |||
| 41 | // Fn2 Layer | ||
| 42 | [2] = LAYOUT_all( | ||
| 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, 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, 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, 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, KC_TRNS, KC_TRNS, | ||
| 47 | 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, KC_TRNS, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 49 | ), | ||
| 50 | |||
| 51 | // Fn3 Layer | ||
| 52 | [3] = LAYOUT_all( | ||
| 53 | 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, KC_TRNS, KC_TRNS, | ||
| 54 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 55 | 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, KC_TRNS, KC_TRNS, | ||
| 56 | 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, | ||
| 57 | 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, KC_TRNS, | ||
| 58 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 59 | ), | ||
| 60 | }; | ||
| 61 | |||
diff --git a/keyboards/kopibeng/mnk88/keymaps/via/keymap.c b/keyboards/kopibeng/mnk88/keymaps/via/keymap.c new file mode 100644 index 000000000..0fa17b2d0 --- /dev/null +++ b/keyboards/kopibeng/mnk88/keymaps/via/keymap.c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* Copyright 2021 Samuel Lu | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | // Default layer | ||
| 22 | [0] = LAYOUT_all( | ||
| 23 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 24 | KC_GRV, 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, KC_INS, KC_HOME, KC_PGUP, | ||
| 25 | 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, KC_DEL, KC_END, KC_PGDN, | ||
| 26 | 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, | ||
| 27 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(2), KC_UP, | ||
| 28 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 29 | ), | ||
| 30 | |||
| 31 | // Fn1 Layer | ||
| 32 | [1] = LAYOUT_all( | ||
| 33 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 34 | 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, KC_TRNS, KC_MPLY, KC_VOLU, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD, | ||
| 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, | ||
| 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, 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 | ||
| 39 | ), | ||
| 40 | |||
| 41 | // Fn2 Layer | ||
| 42 | [2] = LAYOUT_all( | ||
| 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, 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, 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, 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, KC_TRNS, KC_TRNS, | ||
| 47 | 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, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 49 | ), | ||
| 50 | |||
| 51 | // Fn3 Layer | ||
| 52 | [3] = LAYOUT_all( | ||
| 53 | 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, KC_TRNS, KC_TRNS, | ||
| 54 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 55 | 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, KC_TRNS, KC_TRNS, | ||
| 56 | 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, | ||
| 57 | 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, | ||
| 58 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 59 | ), | ||
| 60 | }; | ||
| 61 | |||
diff --git a/keyboards/kopibeng/mnk88/keymaps/via/rules.mk b/keyboards/kopibeng/mnk88/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/kopibeng/mnk88/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/kopibeng/mnk88/mnk88.c b/keyboards/kopibeng/mnk88/mnk88.c new file mode 100644 index 000000000..ac40692d4 --- /dev/null +++ b/keyboards/kopibeng/mnk88/mnk88.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2021 Samuel Lu | ||
| 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 "mnk88.h" | ||
| 18 | |||
| 19 | void matrix_init_kb(void) { | ||
| 20 | |||
| 21 | setPinOutput(LED_CAPS_LOCK_PIN); | ||
| 22 | setPinOutput(LED_SCROLL_LOCK_PIN); | ||
| 23 | |||
| 24 | matrix_init_user(); | ||
| 25 | } | ||
| 26 | |||
| 27 | bool led_update_kb(led_t led_state) { | ||
| 28 | |||
| 29 | bool res = led_update_user(led_state); | ||
| 30 | |||
| 31 | if(res) { | ||
| 32 | writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock); | ||
| 33 | writePin(LED_SCROLL_LOCK_PIN, led_state.scroll_lock); | ||
| 34 | } | ||
| 35 | return res; | ||
| 36 | } | ||
diff --git a/keyboards/kopibeng/mnk88/mnk88.h b/keyboards/kopibeng/mnk88/mnk88.h new file mode 100644 index 000000000..4fabf95df --- /dev/null +++ b/keyboards/kopibeng/mnk88/mnk88.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2021 Samuel Lu | ||
| 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 ____ KC_NO | ||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | #define LAYOUT_all( \ | ||
| 26 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \ | ||
| 27 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K212, K113, K114, K115, K116, \ | ||
| 28 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K312, K213, K214, K215, K216, \ | ||
| 29 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \ | ||
| 30 | K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K415, \ | ||
| 31 | K500, K501, K502, K506, K510, K511, K512, K513, K514, K515, K416 \ | ||
| 32 | ) { \ | ||
| 33 | {K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016}, \ | ||
| 34 | {K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116}, \ | ||
| 35 | {K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216}, \ | ||
| 36 | {K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, ____, ____, ____}, \ | ||
| 37 | {K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, ____, K415, K416}, \ | ||
| 38 | {K500, K501, K502, ____, ____, ____, K506, ____, ____, ____, K510, K511, K512, K513, K514, K515, ____} \ | ||
| 39 | } | ||
diff --git a/keyboards/kopibeng/mnk88/readme.md b/keyboards/kopibeng/mnk88/readme.md new file mode 100644 index 000000000..700dc8b24 --- /dev/null +++ b/keyboards/kopibeng/mnk88/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # MNK88 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A QMK-powered, VIA-enabled 88-key (F13) TKL PCB with support for ANSI/ISO layouts, split Backspace, split Right Shift and 6.25U/7U bottom row. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: kopibeng | ||
| 8 | * Hardware Supported: A TKL keyboard with STM32F072 MCU | ||
| 9 | * Hardware Availability: https://monokei.co/ | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make kopibeng/mnk88: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). | ||
| 16 | |||
| 17 | ## Reset | ||
| 18 | |||
| 19 | Press the RESET switch on bottom side of PCB to enter bootloader. | ||
diff --git a/keyboards/kopibeng/mnk88/rules.mk b/keyboards/kopibeng/mnk88/rules.mk new file mode 100644 index 000000000..cdfcbb418 --- /dev/null +++ b/keyboards/kopibeng/mnk88/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-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 = yes # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # 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 | AUDIO_ENABLE = no # Audio output | ||
| 22 | ENCODER_ENABLE = no # Enable Encoder | ||
| 23 | |||
| 24 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 25 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE \ No newline at end of file | ||
