diff options
| author | Felix Jen <fjen@felixjen.com> | 2021-11-29 02:26:32 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-29 00:26:32 -0800 |
| commit | 4c0ecd4910af46f9e7b5ca01ea2e016d69092faa (patch) | |
| tree | ac2d54d2c858ac5bd9528ea3b02ead8f3cea337b | |
| parent | 1b6673de1fd5b6d07660c40b51bbe519d4956fcd (diff) | |
| download | qmk_firmware-4c0ecd4910af46f9e7b5ca01ea2e016d69092faa.tar.gz qmk_firmware-4c0ecd4910af46f9e7b5ca01ea2e016d69092faa.zip | |
[Keyboard] Add FJLabs 7V Hotswap PCBs (#15175)
Co-authored-by: Drashna Jaelre <drashna@live.com>
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/7vhotswap.c | 14 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/7vhotswap.h | 34 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/config.h | 118 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/info.json | 97 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/keymaps/default/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/keymaps/via/keymap.c | 61 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/fjlabs/7vhotswap/rules.mk | 24 |
9 files changed, 405 insertions, 0 deletions
diff --git a/keyboards/fjlabs/7vhotswap/7vhotswap.c b/keyboards/fjlabs/7vhotswap/7vhotswap.c new file mode 100644 index 000000000..60a9dffc4 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/7vhotswap.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 <me@fjlaboratories.com> | ||
| 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 | #include "7vhotswap.h" | ||
diff --git a/keyboards/fjlabs/7vhotswap/7vhotswap.h b/keyboards/fjlabs/7vhotswap/7vhotswap.h new file mode 100644 index 000000000..f0f710dac --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/7vhotswap.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 <me@fjlaboratories.com> | ||
| 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 "quantum.h" | ||
| 18 | |||
| 19 | /* === All used matrix spots populated === */ | ||
| 20 | #define LAYOUT_75_all( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
| 24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 25 | K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4D, \ | ||
| 26 | K50, K51, K52, K55, K59, K5A, K5C, K5D, K5E \ | ||
| 27 | ) { \ | ||
| 28 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, KC_NO }, \ | ||
| 29 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 30 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
| 31 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 32 | { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, KC_NO, K4D, KC_NO }, \ | ||
| 33 | { K50, K51, K52, KC_NO, KC_NO, K55, KC_NO, KC_NO, KC_NO, K59, K5A, KC_NO, K5C, K5D, K5E } \ | ||
| 34 | } | ||
diff --git a/keyboards/fjlabs/7vhotswap/config.h b/keyboards/fjlabs/7vhotswap/config.h new file mode 100644 index 000000000..a34bf8f5f --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/config.h | |||
| @@ -0,0 +1,118 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 <me@fjlaboratories.com> | ||
| 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 0x7074 // FJLaboratories | ||
| 24 | #define PRODUCT_ID 0x0014 // 7V Hotswap | ||
| 25 | #define DEVICE_VER 0x0001 // Version 1 | ||
| 26 | #define MANUFACTURER FJLaboratories | ||
| 27 | #define PRODUCT 7V Hotswap | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 6 | ||
| 31 | #define MATRIX_COLS 15 | ||
| 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 | |||
| 44 | // Checked with Eagle Schematic | ||
| 45 | #define MATRIX_ROW_PINS { B0, F4, F1, F7, F6, F5 } | ||
| 46 | #define MATRIX_COL_PINS { F0, B1, B2, B3, B7, D0, D1, D2, D3, D5, D7, B4, B5, B6, C6 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW or ROW2COL */ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 53 | #define DEBOUNCE 5 | ||
| 54 | |||
| 55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 56 | //#define MATRIX_HAS_GHOST | ||
| 57 | |||
| 58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 59 | #define LOCKING_SUPPORT_ENABLE | ||
| 60 | /* Locking resynchronize hack */ | ||
| 61 | #define LOCKING_RESYNC_ENABLE | ||
| 62 | |||
| 63 | /* Define RGB */ | ||
| 64 | #define RGB_DI_PIN C7 | ||
| 65 | #define RGBLED_NUM 4 | ||
| 66 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 67 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 68 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 69 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 70 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 71 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 72 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 73 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 74 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 75 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 76 | #define RGBLIGHT_LIMIT_VAL 255 | ||
| 77 | #define RGB_VAL_STEP 12 | ||
| 78 | |||
| 79 | /* Define less important options */ | ||
| 80 | |||
| 81 | /* | ||
| 82 | * Force NKRO | ||
| 83 | * | ||
| 84 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 85 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 86 | * makefile for this to work.) | ||
| 87 | * | ||
| 88 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 89 | * until the next keyboard reset. | ||
| 90 | * | ||
| 91 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 92 | * fully operational during normal computer usage. | ||
| 93 | * | ||
| 94 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 95 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 96 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 97 | * power-up. | ||
| 98 | * | ||
| 99 | */ | ||
| 100 | //#define FORCE_NKRO | ||
| 101 | |||
| 102 | /* | ||
| 103 | * Feature disable options | ||
| 104 | * These options are also useful to firmware size reduction. | ||
| 105 | */ | ||
| 106 | |||
| 107 | /* disable debug print */ | ||
| 108 | //#define NO_DEBUG | ||
| 109 | |||
| 110 | /* disable print */ | ||
| 111 | //#define NO_PRINT | ||
| 112 | |||
| 113 | /* disable action features */ | ||
| 114 | //#define NO_ACTION_LAYER | ||
| 115 | //#define NO_ACTION_TAPPING | ||
| 116 | //#define NO_ACTION_ONESHOT | ||
| 117 | #define NO_ACTION_MACRO | ||
| 118 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/fjlabs/7vhotswap/info.json b/keyboards/fjlabs/7vhotswap/info.json new file mode 100644 index 000000000..87e492bc4 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/info.json | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "7V Hotswap PCBs", | ||
| 3 | "url": "http://www.fjlaboratories.com/", | ||
| 4 | "maintainer": "FJLabs", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_75_all": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"Esc", "x":0, "y":0}, | ||
| 9 | {"label":"F1", "x":1.25, "y":0}, | ||
| 10 | {"label":"F2", "x":2.25, "y":0}, | ||
| 11 | {"label":"F3", "x":3.25, "y":0}, | ||
| 12 | {"label":"F4", "x":4.25, "y":0}, | ||
| 13 | {"label":"F5", "x":5.5, "y":0}, | ||
| 14 | {"label":"F6", "x":6.5, "y":0}, | ||
| 15 | {"label":"F7", "x":7.5, "y":0}, | ||
| 16 | {"label":"F8", "x":8.5, "y":0}, | ||
| 17 | {"label":"F9", "x":9.75, "y":0}, | ||
| 18 | {"label":"F10", "x":10.75, "y":0}, | ||
| 19 | {"label":"F11", "x":11.75, "y":0}, | ||
| 20 | {"label":"F12", "x":12.75, "y":0}, | ||
| 21 | {"label":"Print Screen", "x":14, "y":0} | ||
| 22 | |||
| 23 | {"label":"~", "x":0, "y":1.25}, | ||
| 24 | {"label":"!", "x":1, "y":1.25}, | ||
| 25 | {"label":"@", "x":2, "y":1.25}, | ||
| 26 | {"label":"#", "x":3, "y":1.25}, | ||
| 27 | {"label":"$", "x":4, "y":1.25}, | ||
| 28 | {"label":"%", "x":5, "y":1.25}, | ||
| 29 | {"label":"^", "x":6, "y":1.25}, | ||
| 30 | {"label":"&", "x":7, "y":1.25}, | ||
| 31 | {"label":"*", "x":8, "y":1.25}, | ||
| 32 | {"label":"(", "x":9, "y":1.25}, | ||
| 33 | {"label":")", "x":10, "y":1.25}, | ||
| 34 | {"label":"_", "x":11, "y":1.25}, | ||
| 35 | {"label":"+", "x":12, "y":1.25}, | ||
| 36 | {"label":"Back Space", "x":13, "y":1.25}, | ||
| 37 | {"label":"Back Space", "x":14, "y":1.25}, | ||
| 38 | {"label":"Delete", "x":15.25, "y":1.25}, | ||
| 39 | |||
| 40 | {"label":"Tab", "x":0, "y":2.25, "w":1.5}, | ||
| 41 | {"label":"Q", "x":1.5, "y":2.25}, | ||
| 42 | {"label":"W", "x":2.5, "y":2.25}, | ||
| 43 | {"label":"E", "x":3.5, "y":2.25}, | ||
| 44 | {"label":"R", "x":4.5, "y":2.25}, | ||
| 45 | {"label":"T", "x":5.5, "y":2.25}, | ||
| 46 | {"label":"Y", "x":6.5, "y":2.25}, | ||
| 47 | {"label":"U", "x":7.5, "y":2.25}, | ||
| 48 | {"label":"I", "x":8.5, "y":2.25}, | ||
| 49 | {"label":"O", "x":9.5, "y":2.25}, | ||
| 50 | {"label":"P", "x":10.5, "y":2.25}, | ||
| 51 | {"label":"{", "x":11.5, "y":2.25}, | ||
| 52 | {"label":"}", "x":12.5, "y":2.25}, | ||
| 53 | {"label":"|", "x":13.5, "y":2.25, "w":1.5}, | ||
| 54 | {"label":"Page Up", "x":15.25, "y":2.25}, | ||
| 55 | |||
| 56 | {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75}, | ||
| 57 | {"label":"A", "x":1.75, "y":3.25}, | ||
| 58 | {"label":"S", "x":2.75, "y":3.25}, | ||
| 59 | {"label":"D", "x":3.75, "y":3.25}, | ||
| 60 | {"label":"F", "x":4.75, "y":3.25}, | ||
| 61 | {"label":"G", "x":5.75, "y":3.25}, | ||
| 62 | {"label":"H", "x":6.75, "y":3.25}, | ||
| 63 | {"label":"J", "x":7.75, "y":3.25}, | ||
| 64 | {"label":"K", "x":8.75, "y":3.25}, | ||
| 65 | {"label":"L", "x":9.75, "y":3.25}, | ||
| 66 | {"label":":", "x":10.75, "y":3.25}, | ||
| 67 | {"label":"SQ", "x":11.75, "y":3.25}, | ||
| 68 | {"label":"Enter", "x":12.75, "y":3.25, "w":2.25}, | ||
| 69 | {"label":"Page Down", "x":15.25, "y":3.25}, | ||
| 70 | |||
| 71 | {"label":"Shift", "x":0, "y":4.25, "w":2.25}, | ||
| 72 | {"label":"Z", "x":2.25, "y":4.25}, | ||
| 73 | {"label":"X", "x":3.25, "y":4.25}, | ||
| 74 | {"label":"C", "x":4.25, "y":4.25}, | ||
| 75 | {"label":"V", "x":5.25, "y":4.25}, | ||
| 76 | {"label":"B", "x":6.25, "y":4.25}, | ||
| 77 | {"label":"N", "x":7.25, "y":4.25}, | ||
| 78 | {"label":"M", "x":8.25, "y":4.25}, | ||
| 79 | {"label":"<", "x":9.25, "y":4.25}, | ||
| 80 | {"label":">", "x":10.25, "y":4.25}, | ||
| 81 | {"label":"?", "x":11.25, "y":4.25}, | ||
| 82 | {"label":"Shift", "x":12.25, "y":4.25, "w":1.75}, | ||
| 83 | {"label":"\u2191", "x":14.25, "y":4.5}, | ||
| 84 | |||
| 85 | {"label":"Ctrl", "x":0, "y":5.25, "w":1.25}, | ||
| 86 | {"label":"Win", "x":1.25, "y":5.25, "w":1.25}, | ||
| 87 | {"label":"Alt", "x":2.5, "y":5.25, "w":1.25}, | ||
| 88 | {"x":3.75, "y":5.25, "w":6.25}, | ||
| 89 | {"label":"Alt", "x":10, "y":5.25, "w":1.25}, | ||
| 90 | {"label":"MO(1)", "x":11.25, "y":5.25, "w":1.25}, | ||
| 91 | {"label":"\u2190", "x":12.75, "y":5.5}, | ||
| 92 | {"label":"\u2193", "x":13.75, "y":5.5}, | ||
| 93 | {"label":"\u2192", "x":14.75, "y":5.5} | ||
| 94 | ] | ||
| 95 | } | ||
| 96 | } | ||
| 97 | } | ||
diff --git a/keyboards/fjlabs/7vhotswap/keymaps/default/keymap.c b/keyboards/fjlabs/7vhotswap/keymaps/default/keymap.c new file mode 100644 index 000000000..5484ab9f8 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/keymaps/default/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 <me@fjlaboratories.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 16 | |||
| 17 | enum layers { | ||
| 18 | _LAYER0, | ||
| 19 | _LAYER1, | ||
| 20 | }; | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | |||
| 24 | [_LAYER0] = LAYOUT_75_all( | ||
| 25 | 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_PSCR, | ||
| 26 | 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_DEL, | ||
| 27 | 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_PGUP, | ||
| 28 | 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, KC_BSPC, KC_PGDN, | ||
| 29 | 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, | ||
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 31 | ), | ||
| 32 | |||
| 33 | [_LAYER1] = LAYOUT_75_all( | ||
| 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, | ||
| 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, 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, 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, | ||
| 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, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 40 | ) | ||
| 41 | }; | ||
diff --git a/keyboards/fjlabs/7vhotswap/keymaps/via/keymap.c b/keyboards/fjlabs/7vhotswap/keymaps/via/keymap.c new file mode 100644 index 000000000..e6c2397a1 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/keymaps/via/keymap.c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 <felix@fjlaboratories.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 16 | |||
| 17 | enum layers { | ||
| 18 | _LAYER0, | ||
| 19 | _LAYER1, | ||
| 20 | _LAYER2, | ||
| 21 | _LAYER3, | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | |||
| 26 | [_LAYER0] = LAYOUT_75_all( | ||
| 27 | 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_PSCR, | ||
| 28 | 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_DEL, | ||
| 29 | 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_PGUP, | ||
| 30 | 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, KC_BSPC, KC_PGDN, | ||
| 31 | 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, | ||
| 32 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 33 | ), | ||
| 34 | |||
| 35 | [_LAYER1] = LAYOUT_75_all( | ||
| 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, 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, 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, KC_TRNS, KC_TRNS, | ||
| 40 | 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, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 42 | ), | ||
| 43 | |||
| 44 | [_LAYER2] = LAYOUT_75_all( | ||
| 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, 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, 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, KC_TRNS, KC_TRNS, | ||
| 49 | 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, | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 51 | ), | ||
| 52 | |||
| 53 | [_LAYER3] = LAYOUT_75_all( | ||
| 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, | ||
| 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, 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, | ||
| 58 | 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, | ||
| 59 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 60 | ) | ||
| 61 | }; \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/7vhotswap/keymaps/via/rules.mk b/keyboards/fjlabs/7vhotswap/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/fjlabs/7vhotswap/readme.md b/keyboards/fjlabs/7vhotswap/readme.md new file mode 100644 index 000000000..41f001410 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # 7V Hotswap PCB by FJLaboratories | ||
| 2 | |||
| 3 | The following is the QMK Firmware for the 7V Hotswap PCB by [FJLaboratories](https://www.fjlaboratories.com/). | ||
| 4 | * Keyboard Maintainer: FJLaboratories | ||
| 5 | * Hardware Supported: 7V Hotswap | ||
| 6 | |||
| 7 | Make example for this keyboard (after setting up your build environment): | ||
| 8 | |||
| 9 | make fjlabs/7vhotswap:default | ||
| 10 | |||
| 11 | 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). | ||
| 12 | |||
| 13 | ## Bootloader | ||
| 14 | |||
| 15 | You can enter the bootloader by shorting the RST pads on the back of the PCB while the PCB is plugged into the computer. | ||
diff --git a/keyboards/fjlabs/7vhotswap/rules.mk b/keyboards/fjlabs/7vhotswap/rules.mk new file mode 100644 index 000000000..c73cb35f0 --- /dev/null +++ b/keyboards/fjlabs/7vhotswap/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 8000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | BOOTLOADER = atmel-dfu | ||
| 9 | |||
| 10 | # Build Options | ||
| 11 | # change yes to no to disable | ||
| 12 | # | ||
| 13 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 16 | CONSOLE_ENABLE = no # Console for debug | ||
| 17 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 21 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 24 | AUDIO_ENABLE = no # Audio output | ||
