diff options
| author | kopibeng <52724926+kopibeng@users.noreply.github.com> | 2021-03-25 19:49:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 22:49:37 +1100 |
| commit | 3fc710e0b149627bae3406fff84855308710c485 (patch) | |
| tree | 412e8f2b3ec1d1e65a8008a05fbe831d12fe1fbc | |
| parent | dd0a35273c9445357e1bd5c28ef81ab93306e108 (diff) | |
| download | qmk_firmware-3fc710e0b149627bae3406fff84855308710c485.tar.gz qmk_firmware-3fc710e0b149627bae3406fff84855308710c485.zip | |
Add XT65 keyboard (#11998)
* Add XT65 keyboard
* Create readme.md
* Updated readme.md and rules.mk
* Updated config.h and readme.md
* Update imgur link
* Update keyboards/kopibeng/xt65/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kopibeng/xt65/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kopibeng/xt65/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kopibeng/xt65/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kopibeng/xt65/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kopibeng/xt65/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kopibeng/xt65/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/kopibeng/xt65/config.h | 108 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/info.json | 80 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/keymaps/default/keymap.c | 48 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/keymaps/via/keymap.c | 57 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/readme.md | 17 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/xt65.c | 17 | ||||
| -rw-r--r-- | keyboards/kopibeng/xt65/xt65.h | 65 |
9 files changed, 415 insertions, 0 deletions
diff --git a/keyboards/kopibeng/xt65/config.h b/keyboards/kopibeng/xt65/config.h new file mode 100644 index 000000000..e39f832bd --- /dev/null +++ b/keyboards/kopibeng/xt65/config.h | |||
| @@ -0,0 +1,108 @@ | |||
| 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 0x0650 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER kopibeng | ||
| 26 | #define PRODUCT XT65 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 15 | ||
| 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 { B5, B4, D7, D6, D4 } | ||
| 43 | #define MATRIX_COL_PINS { D1, D2, D3, B6, C6, C7, F0, F1, F4, F5, F6, F7, B2, B3, B7 } | ||
| 44 | #define UNUSED_PINS | ||
| 45 | |||
| 46 | /* COL2ROW, ROW2COL*/ | ||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | #define BACKLIGHT_PIN B1 | ||
| 50 | // #define BACKLIGHT_BREATHING | ||
| 51 | #define BACKLIGHT_LEVELS 5 | ||
| 52 | |||
| 53 | #define RGB_DI_PIN D5 | ||
| 54 | #ifdef RGB_DI_PIN | ||
| 55 | #define RGBLED_NUM 12 | ||
| 56 | #define RGBLIGHT_HUE_STEP 8 | ||
| 57 | #define RGBLIGHT_SAT_STEP 8 | ||
| 58 | #define RGBLIGHT_VAL_STEP 8 | ||
| 59 | #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */ | ||
| 60 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 61 | /*== all animations enable ==*/ | ||
| 62 | #define RGBLIGHT_ANIMATIONS | ||
| 63 | // /*== or choose animations ==*/ | ||
| 64 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 65 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 66 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 67 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 68 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 69 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 70 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 71 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 72 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 73 | #endif | ||
| 74 | |||
| 75 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 76 | #define DEBOUNCE 5 | ||
| 77 | |||
| 78 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 79 | //#define MATRIX_HAS_GHOST | ||
| 80 | |||
| 81 | /* number of backlight levels */ | ||
| 82 | |||
| 83 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 84 | #define LOCKING_SUPPORT_ENABLE | ||
| 85 | /* Locking resynchronize hack */ | ||
| 86 | #define LOCKING_RESYNC_ENABLE | ||
| 87 | |||
| 88 | /* | ||
| 89 | * Feature disable options | ||
| 90 | * These options are also useful to firmware size reduction. | ||
| 91 | */ | ||
| 92 | |||
| 93 | /* disable debug print */ | ||
| 94 | //#define NO_DEBUG | ||
| 95 | |||
| 96 | /* disable print */ | ||
| 97 | //#define NO_PRINT | ||
| 98 | |||
| 99 | /* disable action features */ | ||
| 100 | //#define NO_ACTION_LAYER | ||
| 101 | //#define NO_ACTION_TAPPING | ||
| 102 | //#define NO_ACTION_ONESHOT | ||
| 103 | //#define NO_ACTION_MACRO | ||
| 104 | //#define NO_ACTION_FUNCTION | ||
| 105 | |||
| 106 | /* Bootmagic Lite key configuration */ | ||
| 107 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 108 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/kopibeng/xt65/info.json b/keyboards/kopibeng/xt65/info.json new file mode 100644 index 000000000..dd374e01f --- /dev/null +++ b/keyboards/kopibeng/xt65/info.json | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "kopibeng XT65", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "kopibeng", | ||
| 5 | "width": 16, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00 (B5,D1)", "x":0, "y":0}, | ||
| 11 | {"label":"K01 (B5,D2)", "x":1, "y":0}, | ||
| 12 | {"label":"K02 (B5,D3)", "x":2, "y":0}, | ||
| 13 | {"label":"K03 (B5,B6)", "x":3, "y":0}, | ||
| 14 | {"label":"K04 (B5,C6)", "x":4, "y":0}, | ||
| 15 | {"label":"K05 (B5,C7)", "x":5, "y":0}, | ||
| 16 | {"label":"K06 (B5,F0)", "x":6, "y":0}, | ||
| 17 | {"label":"K07 (B5,F1)", "x":7, "y":0}, | ||
| 18 | {"label":"K08 (B5,F4)", "x":8, "y":0}, | ||
| 19 | {"label":"K09 (B5,F5)", "x":9, "y":0}, | ||
| 20 | {"label":"K0A (B5,F6)", "x":10, "y":0}, | ||
| 21 | {"label":"K0B (B5,F7)", "x":11, "y":0}, | ||
| 22 | {"label":"K0C (B5,B2)", "x":12, "y":0}, | ||
| 23 | {"label":"K0D (B5,B3)", "x":13, "y":0}, | ||
| 24 | {"label":"K1D (B4,B3)", "x":14, "y":0}, | ||
| 25 | {"label":"K0E (B5,B7)", "x":15, "y":0}, | ||
| 26 | {"label":"K10 (B4,D1)", "x":0, "y":1, "w":1.5}, | ||
| 27 | {"label":"K11 (B4,D2)", "x":1.5, "y":1}, | ||
| 28 | {"label":"K12 (B4,D3)", "x":2.5, "y":1}, | ||
| 29 | {"label":"K13 (B4,B6)", "x":3.5, "y":1}, | ||
| 30 | {"label":"K14 (B4,C6)", "x":4.5, "y":1}, | ||
| 31 | {"label":"K15 (B4,C7)", "x":5.5, "y":1}, | ||
| 32 | {"label":"K16 (B4,F0)", "x":6.5, "y":1}, | ||
| 33 | {"label":"K17 (B4,F1)", "x":7.5, "y":1}, | ||
| 34 | {"label":"K18 (B4,F4)", "x":8.5, "y":1}, | ||
| 35 | {"label":"K19 (B4,F5)", "x":9.5, "y":1}, | ||
| 36 | {"label":"K1A (B4,F6)", "x":10.5, "y":1}, | ||
| 37 | {"label":"K1B (B4,F7)", "x":11.5, "y":1}, | ||
| 38 | {"label":"K1C (B4,B2)", "x":12.5, "y":1}, | ||
| 39 | {"label":"K2D (D7,B3)", "x":13.5, "y":1, "w":1.5}, | ||
| 40 | {"label":"K1E (B4,B7)", "x":15, "y":1}, | ||
| 41 | {"label":"K20 (D7,D1)", "x":0, "y":2, "w":1.25}, | ||
| 42 | {"label":"K21 (D7,D2)", "x":1.75, "y":2}, | ||
| 43 | {"label":"K22 (D7,D3)", "x":2.75, "y":2}, | ||
| 44 | {"label":"K23 (D7,B6)", "x":3.75, "y":2}, | ||
| 45 | {"label":"K24 (D7,C6)", "x":4.75, "y":2}, | ||
| 46 | {"label":"K25 (D7,C7)", "x":5.75, "y":2}, | ||
| 47 | {"label":"K26 (D7,F0)", "x":6.75, "y":2}, | ||
| 48 | {"label":"K27 (D7,F1)", "x":7.75, "y":2}, | ||
| 49 | {"label":"K28 (D7,F4)", "x":8.75, "y":2}, | ||
| 50 | {"label":"K29 (D7,F5)", "x":9.75, "y":2}, | ||
| 51 | {"label":"K2A (D7,F6)", "x":10.75, "y":2}, | ||
| 52 | {"label":"K2B (D7,F7)", "x":11.75, "y":2}, | ||
| 53 | {"label":"K2C (D7,B2)", "x":12.75, "y":2, "w":2.25}, | ||
| 54 | {"label":"K2E (D7,B7)", "x":15, "y":2}, | ||
| 55 | {"label":"K30 (D6,D1)", "x":0, "y":3, "w":2.25}, | ||
| 56 | {"label":"K31 (D6,D2)", "x":2.25, "y":3}, | ||
| 57 | {"label":"K32 (D6,D3)", "x":3.25, "y":3}, | ||
| 58 | {"label":"K33 (D6,B6)", "x":4.25, "y":3}, | ||
| 59 | {"label":"K34 (D6,C6)", "x":5.25, "y":3}, | ||
| 60 | {"label":"K35 (D6,C7)", "x":6.25, "y":3}, | ||
| 61 | {"label":"K36 (D6,F0)", "x":7.25, "y":3}, | ||
| 62 | {"label":"K37 (D6,F1)", "x":8.25, "y":3}, | ||
| 63 | {"label":"K38 (D6,F4)", "x":9.25, "y":3}, | ||
| 64 | {"label":"K39 (D6,F5)", "x":10.25, "y":3}, | ||
| 65 | {"label":"K3A (D6,F6)", "x":11.25, "y":3}, | ||
| 66 | {"label":"K3B (D6,F7)", "x":12.25, "y":3, "w":1.75}, | ||
| 67 | {"label":"K3D (D6,B3)", "x":14, "y":3}, | ||
| 68 | {"label":"K3E (D6,B7)", "x":15, "y":3}, | ||
| 69 | {"label":"K40 (D4,D1)", "x":0, "y":4, "w":1.5}, | ||
| 70 | {"label":"K41 (D4,D2)", "x":1.5, "y":4}, | ||
| 71 | {"label":"K42 (D4,D3)", "x":2.5, "y":4, "w":1.5}, | ||
| 72 | {"label":"K45 (D4,C7)", "x":4, "y":4, "w":7}, | ||
| 73 | {"label":"K4A (D4,F6)", "x":11, "y":4, "w":1.5}, | ||
| 74 | {"label":"K4C (D4,B2)", "x":13, "y":4}, | ||
| 75 | {"label":"K4D (D4,B3)", "x":14, "y":4}, | ||
| 76 | {"label":"K4E (D4,B7)", "x":15, "y":4} | ||
| 77 | ] | ||
| 78 | } | ||
| 79 | } | ||
| 80 | } \ No newline at end of file | ||
diff --git a/keyboards/kopibeng/xt65/keymaps/default/keymap.c b/keyboards/kopibeng/xt65/keymaps/default/keymap.c new file mode 100644 index 000000000..5c6d33041 --- /dev/null +++ b/keyboards/kopibeng/xt65/keymaps/default/keymap.c | |||
| @@ -0,0 +1,48 @@ | |||
| 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_GESC, 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_BSLS, KC_DEL, KC_PGUP, | ||
| 24 | 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_BSPC, KC_PGDN, | ||
| 25 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 27 | MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | |||
| 30 | // Fn1 Layer | ||
| 31 | [1] = LAYOUT_all( | ||
| 32 | KC_TRNS, 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_TRNS, RESET, | ||
| 33 | 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, | ||
| 34 | KC_CAPS, 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, | ||
| 35 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MPLY, KC_MPRV, KC_MNXT, 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 | ||
| 37 | ), | ||
| 38 | |||
| 39 | // Fn2 Layer | ||
| 40 | [2] = LAYOUT_all( | ||
| 41 | 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, | ||
| 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 | ||
| 46 | ), | ||
| 47 | }; | ||
| 48 | |||
diff --git a/keyboards/kopibeng/xt65/keymaps/via/keymap.c b/keyboards/kopibeng/xt65/keymaps/via/keymap.c new file mode 100644 index 000000000..043afa68a --- /dev/null +++ b/keyboards/kopibeng/xt65/keymaps/via/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 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_GESC, 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, KC_PGUP, | ||
| 24 | 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_PGDN, | ||
| 25 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 27 | MO(1), KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | |||
| 30 | // Fn1 Layer | ||
| 31 | [1] = LAYOUT_all( | ||
| 32 | KC_TRNS, 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_TRNS, RESET, | ||
| 33 | 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, | ||
| 34 | KC_CAPS, 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, | ||
| 35 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MPLY, KC_MPRV, KC_MNXT, 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 | ||
| 37 | ), | ||
| 38 | |||
| 39 | // Fn2 Layer | ||
| 40 | [2] = LAYOUT_all( | ||
| 41 | 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, | ||
| 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 | ||
| 46 | ), | ||
| 47 | |||
| 48 | // Fn3 Layer | ||
| 49 | [3] = LAYOUT_all( | ||
| 50 | 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, | ||
| 51 | 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, | ||
| 52 | 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, | ||
| 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, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 55 | ), | ||
| 56 | }; | ||
| 57 | |||
diff --git a/keyboards/kopibeng/xt65/keymaps/via/rules.mk b/keyboards/kopibeng/xt65/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/kopibeng/xt65/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/kopibeng/xt65/readme.md b/keyboards/kopibeng/xt65/readme.md new file mode 100644 index 000000000..19f1d7efe --- /dev/null +++ b/keyboards/kopibeng/xt65/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # XT65 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 65% PCB with support for VIA, LED backlight and RGB underglow. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: kopibeng | ||
| 8 | * Hardware Supported: A 65% keyboard with ATMEGA32U4 | ||
| 9 | * Hardware Availability: N/A | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make kopibeng/xt65:default | ||
| 14 | |||
| 15 | Press the switch (SW1) on bottom side of PCB to enter bootloader. | ||
| 16 | |||
| 17 | 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/kopibeng/xt65/rules.mk b/keyboards/kopibeng/xt65/rules.mk new file mode 100644 index 000000000..1d60cf3c2 --- /dev/null +++ b/keyboards/kopibeng/xt65/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = lite # 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 = 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 = yes # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/kopibeng/xt65/xt65.c b/keyboards/kopibeng/xt65/xt65.c new file mode 100644 index 000000000..bd1622bfa --- /dev/null +++ b/keyboards/kopibeng/xt65/xt65.c | |||
| @@ -0,0 +1,17 @@ | |||
| 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 "xt65.h" | ||
diff --git a/keyboards/kopibeng/xt65/xt65.h b/keyboards/kopibeng/xt65/xt65.h new file mode 100644 index 000000000..d14440e08 --- /dev/null +++ b/keyboards/kopibeng/xt65/xt65.h | |||
| @@ -0,0 +1,65 @@ | |||
| 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, K113, K014, \ | ||
| 27 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K213, K114, \ | ||
| 28 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 29 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \ | ||
| 30 | K400, K401, K402, K405, K409, K410, K412, K413, K414 \ | ||
| 31 | ) { \ | ||
| 32 | {K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014}, \ | ||
| 33 | {K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114}, \ | ||
| 34 | {K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214}, \ | ||
| 35 | {K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, K314}, \ | ||
| 36 | {K400, K401, K402, ____, ____, K405, ____, ____, ____, K409, K410, ____, K412, K413, K414} \ | ||
| 37 | } | ||
| 38 | |||
| 39 | #define LAYOUT_65_7u_split_bs( \ | ||
| 40 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K113, K014, \ | ||
| 41 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K213, K114, \ | ||
| 42 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 43 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \ | ||
| 44 | K400, K401, K402, K405, K410, K412, K413, K414 \ | ||
| 45 | ) { \ | ||
| 46 | {K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014}, \ | ||
| 47 | {K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114}, \ | ||
| 48 | {K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214}, \ | ||
| 49 | {K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, K314}, \ | ||
| 50 | {K400, K401, K402, ____, ____, K405, ____, ____, ____, ____, K410, ____, K412, K413, K414} \ | ||
| 51 | } | ||
| 52 | |||
| 53 | #define LAYOUT_65_625u( \ | ||
| 54 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \ | ||
| 55 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K213, K114, \ | ||
| 56 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 57 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \ | ||
| 58 | K400, K401, K402, K405, K409, K410, K412, K413, K414 \ | ||
| 59 | ) { \ | ||
| 60 | {K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014}, \ | ||
| 61 | {K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, ____, K114}, \ | ||
| 62 | {K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214}, \ | ||
| 63 | {K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, K314}, \ | ||
| 64 | {K400, K401, K402, ____, ____, K405, ____, ____, ____, K409, K410, ____, K412, K413, K414} \ | ||
| 65 | } | ||
