diff options
| author | ai03 <sarcaphx510@gmail.com> | 2020-05-07 17:44:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 01:44:19 -0700 |
| commit | 606438692db8bb935c047bf202e9052f2e1ac037 (patch) | |
| tree | a2d90c037e7867f7c2c056185222cc13f61d97a6 /keyboards/quad_h | |
| parent | 5d29a13e22acd08768d256d079ab4b3fed480e12 (diff) | |
| download | qmk_firmware-606438692db8bb935c047bf202e9052f2e1ac037.tar.gz qmk_firmware-606438692db8bb935c047bf202e9052f2e1ac037.zip | |
[Keyboard] Add QUAD-H LB75 keyboard (#8607)
* Copy back old files from 9 months ago
* Delete unnecessary functions in lb75.c
* Remove LCD and MIDI config
* Modernize ancient files
* Update keymaps as necessary
* Move files to vendor folder
* Update readme to reflect changes
* Modernize makefile
* Remove split config
* Update keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c
* Update keyboards/quad_h/lb75/keymaps/via/keymap.c
* Update keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c
* Update keyboards/quad_h/lb75/lb75.c
* Update lb75.c
* Update keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c
* Update keyboards/quad_h/lb75/readme.md
* Update keyboards/quad_h/lb75/keymaps/via/keymap.c
* Update keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c
* Update keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c
* Update keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c
* Update keyboards/quad_h/lb75/keymaps/via/keymap.c
* Add default keymap as required
* Update keyboards/quad_h/lb75/info.json
* Update keyboards/quad_h/lb75/info.json
* Update keyboards/quad_h/lb75/readme.md
* Update keyboards/quad_h/lb75/readme.md
Diffstat (limited to 'keyboards/quad_h')
| -rw-r--r-- | keyboards/quad_h/lb75/config.h | 196 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/info.json | 187 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c | 35 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/continuous_fnrow/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/default/keymap.c | 35 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/default/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c | 35 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/divided_fnrow/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/via/keymap.c | 51 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/via/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/lb75.c | 39 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/lb75.h | 73 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/quad_h/lb75/rules.mk | 33 |
15 files changed, 712 insertions, 0 deletions
diff --git a/keyboards/quad_h/lb75/config.h b/keyboards/quad_h/lb75/config.h new file mode 100644 index 000000000..1c23ed5b3 --- /dev/null +++ b/keyboards/quad_h/lb75/config.h | |||
| @@ -0,0 +1,196 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Ryota Goto | ||
| 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 0xA103 | ||
| 24 | #define PRODUCT_ID 0x0007 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER QUADH | ||
| 27 | #define PRODUCT LB75 | ||
| 28 | #define DESCRIPTION Custom 75% keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 12 | ||
| 32 | #define MATRIX_COLS 8 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | |||
| 45 | #define MATRIX_ROW_PINS { D4, D6, D7, B4, B5, B6, C6, C7, D3, D5, F0, E6 } | ||
| 46 | #define MATRIX_COL_PINS { D2, D1, D0, F1, F4, F5, F6, F7 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW, ROW2COL*/ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | #define BACKLIGHT_PIN B7 | ||
| 53 | // #define BACKLIGHT_BREATHING | ||
| 54 | #define BACKLIGHT_LEVELS 5 | ||
| 55 | |||
| 56 | #define RGB_DI_PIN B0 | ||
| 57 | #ifdef RGB_DI_PIN | ||
| 58 | #define RGBLED_NUM 16 | ||
| 59 | #define RGBLIGHT_HUE_STEP 8 | ||
| 60 | #define RGBLIGHT_SAT_STEP 8 | ||
| 61 | #define RGBLIGHT_VAL_STEP 8 | ||
| 62 | #define RGBLIGHT_LIMIT_VAL 220 /* The maximum brightness level */ | ||
| 63 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 64 | /*== all animations enable ==*/ | ||
| 65 | #define RGBLIGHT_ANIMATIONS | ||
| 66 | // /*== or choose animations ==*/ | ||
| 67 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 68 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 69 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 70 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 71 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 72 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 73 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 74 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 75 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 76 | // /*== customize breathing effect ==*/ | ||
| 77 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 78 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 79 | // /*==== use exp() and sin() ====*/ | ||
| 80 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 81 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 82 | #endif | ||
| 83 | |||
| 84 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 85 | #define DEBOUNCE 5 | ||
| 86 | |||
| 87 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 88 | //#define MATRIX_HAS_GHOST | ||
| 89 | |||
| 90 | /* number of backlight levels */ | ||
| 91 | |||
| 92 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 93 | #define LOCKING_SUPPORT_ENABLE | ||
| 94 | /* Locking resynchronize hack */ | ||
| 95 | #define LOCKING_RESYNC_ENABLE | ||
| 96 | |||
| 97 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 98 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 99 | */ | ||
| 100 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 101 | |||
| 102 | /* | ||
| 103 | * Force NKRO | ||
| 104 | * | ||
| 105 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 106 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 107 | * makefile for this to work.) | ||
| 108 | * | ||
| 109 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 110 | * until the next keyboard reset. | ||
| 111 | * | ||
| 112 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 113 | * fully operational during normal computer usage. | ||
| 114 | * | ||
| 115 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 116 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 117 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 118 | * power-up. | ||
| 119 | * | ||
| 120 | */ | ||
| 121 | //#define FORCE_NKRO | ||
| 122 | |||
| 123 | /* | ||
| 124 | * Magic Key Options | ||
| 125 | * | ||
| 126 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 127 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 128 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 129 | * | ||
| 130 | * The options below allow the magic key functionality to be changed. This is | ||
| 131 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 132 | * | ||
| 133 | */ | ||
| 134 | |||
| 135 | /* key combination for magic key command */ | ||
| 136 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 137 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 138 | |||
| 139 | /* control how magic key switches layers */ | ||
| 140 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 141 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 142 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 143 | |||
| 144 | /* override magic key keymap */ | ||
| 145 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 146 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 147 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 148 | //#define MAGIC_KEY_HELP H | ||
| 149 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 150 | //#define MAGIC_KEY_DEBUG D | ||
| 151 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 152 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 153 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 154 | //#define MAGIC_KEY_VERSION V | ||
| 155 | //#define MAGIC_KEY_STATUS S | ||
| 156 | //#define MAGIC_KEY_CONSOLE C | ||
| 157 | //#define MAGIC_KEY_LAYER0 0 | ||
| 158 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 159 | //#define MAGIC_KEY_LAYER1 1 | ||
| 160 | //#define MAGIC_KEY_LAYER2 2 | ||
| 161 | //#define MAGIC_KEY_LAYER3 3 | ||
| 162 | //#define MAGIC_KEY_LAYER4 4 | ||
| 163 | //#define MAGIC_KEY_LAYER5 5 | ||
| 164 | //#define MAGIC_KEY_LAYER6 6 | ||
| 165 | //#define MAGIC_KEY_LAYER7 7 | ||
| 166 | //#define MAGIC_KEY_LAYER8 8 | ||
| 167 | //#define MAGIC_KEY_LAYER9 9 | ||
| 168 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 169 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 170 | //#define MAGIC_KEY_LOCK CAPS | ||
| 171 | //#define MAGIC_KEY_EEPROM E | ||
| 172 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 173 | //#define MAGIC_KEY_NKRO N | ||
| 174 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 175 | |||
| 176 | /* | ||
| 177 | * Feature disable options | ||
| 178 | * These options are also useful to firmware size reduction. | ||
| 179 | */ | ||
| 180 | |||
| 181 | /* disable debug print */ | ||
| 182 | //#define NO_DEBUG | ||
| 183 | |||
| 184 | /* disable print */ | ||
| 185 | //#define NO_PRINT | ||
| 186 | |||
| 187 | /* disable action features */ | ||
| 188 | //#define NO_ACTION_LAYER | ||
| 189 | //#define NO_ACTION_TAPPING | ||
| 190 | //#define NO_ACTION_ONESHOT | ||
| 191 | //#define NO_ACTION_MACRO | ||
| 192 | //#define NO_ACTION_FUNCTION | ||
| 193 | |||
| 194 | /* Bootmagic Lite key configuration */ | ||
| 195 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 196 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/quad_h/lb75/info.json b/keyboards/quad_h/lb75/info.json new file mode 100644 index 000000000..b1eebad38 --- /dev/null +++ b/keyboards/quad_h/lb75/info.json | |||
| @@ -0,0 +1,187 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "LB75", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "ai03", | ||
| 5 | "width": 16, | ||
| 6 | "height": 6, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_continuous_fnrow": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Esc", "x":0, "y":0}, | ||
| 11 | {"label":"F1", "x":1, "y":0}, | ||
| 12 | {"label":"F2", "x":2, "y":0}, | ||
| 13 | {"label":"F3", "x":3, "y":0}, | ||
| 14 | {"label":"F4", "x":4, "y":0}, | ||
| 15 | {"label":"F5", "x":5, "y":0}, | ||
| 16 | {"label":"F6", "x":6, "y":0}, | ||
| 17 | {"label":"F7", "x":7, "y":0}, | ||
| 18 | {"label":"F8", "x":8, "y":0}, | ||
| 19 | {"label":"F9", "x":9, "y":0}, | ||
| 20 | {"label":"F10", "x":10, "y":0}, | ||
| 21 | {"label":"F11", "x":11, "y":0}, | ||
| 22 | {"label":"F12", "x":12, "y":0}, | ||
| 23 | {"label":"Print Screen", "x":13, "y":0}, | ||
| 24 | {"label":"Scroll Lock", "x":14, "y":0}, | ||
| 25 | {"label":"Pause", "x":15, "y":0}, | ||
| 26 | {"label":"~", "x":0, "y":1}, | ||
| 27 | {"label":"!", "x":1, "y":1}, | ||
| 28 | {"label":"@", "x":2, "y":1}, | ||
| 29 | {"label":"#", "x":3, "y":1}, | ||
| 30 | {"label":"$", "x":4, "y":1}, | ||
| 31 | {"label":"%", "x":5, "y":1}, | ||
| 32 | {"label":"^", "x":6, "y":1}, | ||
| 33 | {"label":"&", "x":7, "y":1}, | ||
| 34 | {"label":"*", "x":8, "y":1}, | ||
| 35 | {"label":"(", "x":9, "y":1}, | ||
| 36 | {"label":")", "x":10, "y":1}, | ||
| 37 | {"label":"_", "x":11, "y":1}, | ||
| 38 | {"label":"+", "x":12, "y":1}, | ||
| 39 | {"label":"Back Space", "x":13, "y":1}, | ||
| 40 | {"label":"Delete", "x":14, "y":1}, | ||
| 41 | {"label":"Home", "x":15, "y":1}, | ||
| 42 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
| 43 | {"label":"Q", "x":1.5, "y":2}, | ||
| 44 | {"label":"W", "x":2.5, "y":2}, | ||
| 45 | {"label":"E", "x":3.5, "y":2}, | ||
| 46 | {"label":"R", "x":4.5, "y":2}, | ||
| 47 | {"label":"T", "x":5.5, "y":2}, | ||
| 48 | {"label":"Y", "x":6.5, "y":2}, | ||
| 49 | {"label":"U", "x":7.5, "y":2}, | ||
| 50 | {"label":"I", "x":8.5, "y":2}, | ||
| 51 | {"label":"O", "x":9.5, "y":2}, | ||
| 52 | {"label":"P", "x":10.5, "y":2}, | ||
| 53 | {"label":"{", "x":11.5, "y":2}, | ||
| 54 | {"label":"}", "x":12.5, "y":2}, | ||
| 55 | {"label":"|", "x":13.5, "y":2, "w":1.5}, | ||
| 56 | {"label":"End", "x":15, "y":2}, | ||
| 57 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
| 58 | {"label":"A", "x":1.75, "y":3}, | ||
| 59 | {"label":"S", "x":2.75, "y":3}, | ||
| 60 | {"label":"D", "x":3.75, "y":3}, | ||
| 61 | {"label":"F", "x":4.75, "y":3}, | ||
| 62 | {"label":"G", "x":5.75, "y":3}, | ||
| 63 | {"label":"H", "x":6.75, "y":3}, | ||
| 64 | {"label":"J", "x":7.75, "y":3}, | ||
| 65 | {"label":"K", "x":8.75, "y":3}, | ||
| 66 | {"label":"L", "x":9.75, "y":3}, | ||
| 67 | {"label":":", "x":10.75, "y":3}, | ||
| 68 | {"label":"\"", "x":11.75, "y":3}, | ||
| 69 | {"label":"Enter", "x":12.75, "y":3, "w":2.25}, | ||
| 70 | {"label":"PgUp", "x":15, "y":3}, | ||
| 71 | {"label":"Shift", "x":0, "y":4, "w":1.25}, | ||
| 72 | {"label":"|", "x":1.25, "y":4}, | ||
| 73 | {"label":"Z", "x":2.25, "y":4}, | ||
| 74 | {"label":"X", "x":3.25, "y":4}, | ||
| 75 | {"label":"C", "x":4.25, "y":4}, | ||
| 76 | {"label":"V", "x":5.25, "y":4}, | ||
| 77 | {"label":"B", "x":6.25, "y":4}, | ||
| 78 | {"label":"N", "x":7.25, "y":4}, | ||
| 79 | {"label":"M", "x":8.25, "y":4}, | ||
| 80 | {"label":"<", "x":9.25, "y":4}, | ||
| 81 | {"label":">", "x":10.25, "y":4}, | ||
| 82 | {"label":"?", "x":11.25, "y":4}, | ||
| 83 | {"label":"Shift", "x":12.25, "y":4, "w":1.75}, | ||
| 84 | {"label":"↑", "x":14, "y":4}, | ||
| 85 | {"label":"PgDn", "x":15, "y":4}, | ||
| 86 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
| 87 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
| 88 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
| 89 | {"x":3.75, "y":5, "w":6.25}, | ||
| 90 | {"label":"Alt", "x":10, "y":5}, | ||
| 91 | {"label":"Win", "x":11, "y":5}, | ||
| 92 | {"label":"Ctrl", "x":12, "y":5}, | ||
| 93 | {"label":"←", "x":13, "y":5}, | ||
| 94 | {"label":"↓", "x":14, "y":5}, | ||
| 95 | {"label":"→", "x":15, "y":5} | ||
| 96 | ] | ||
| 97 | }, | ||
| 98 | "LAYOUT_divided_fnrow": { | ||
| 99 | "layout": [ | ||
| 100 | {"label":"Esc", "x":0, "y":0}, | ||
| 101 | {"label":"F1", "x":1.5, "y":0}, | ||
| 102 | {"label":"F2", "x":2.5, "y":0}, | ||
| 103 | {"label":"F3", "x":3.5, "y":0}, | ||
| 104 | {"label":"F4", "x":4.5, "y":0}, | ||
| 105 | {"label":"F5", "x":6, "y":0}, | ||
| 106 | {"label":"F6", "x":7, "y":0}, | ||
| 107 | {"label":"F7", "x":8, "y":0}, | ||
| 108 | {"label":"F8", "x":9, "y":0}, | ||
| 109 | {"label":"F9", "x":10.5, "y":0}, | ||
| 110 | {"label":"F10", "x":11.5, "y":0}, | ||
| 111 | {"label":"F11", "x":12.5, "y":0}, | ||
| 112 | {"label":"F12", "x":13.5, "y":0}, | ||
| 113 | {"label":"Print Screen", "x":15, "y":0}, | ||
| 114 | {"label":"~", "x":0, "y":1}, | ||
| 115 | {"label":"!", "x":1, "y":1}, | ||
| 116 | {"label":"@", "x":2, "y":1}, | ||
| 117 | {"label":"#", "x":3, "y":1}, | ||
| 118 | {"label":"$", "x":4, "y":1}, | ||
| 119 | {"label":"%", "x":5, "y":1}, | ||
| 120 | {"label":"^", "x":6, "y":1}, | ||
| 121 | {"label":"&", "x":7, "y":1}, | ||
| 122 | {"label":"*", "x":8, "y":1}, | ||
| 123 | {"label":"(", "x":9, "y":1}, | ||
| 124 | {"label":")", "x":10, "y":1}, | ||
| 125 | {"label":"_", "x":11, "y":1}, | ||
| 126 | {"label":"+", "x":12, "y":1}, | ||
| 127 | {"label":"Back Space", "x":13, "y":1}, | ||
| 128 | {"label":"Delete", "x":14, "y":1}, | ||
| 129 | {"label":"Home", "x":15, "y":1}, | ||
| 130 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
| 131 | {"label":"Q", "x":1.5, "y":2}, | ||
| 132 | {"label":"W", "x":2.5, "y":2}, | ||
| 133 | {"label":"E", "x":3.5, "y":2}, | ||
| 134 | {"label":"R", "x":4.5, "y":2}, | ||
| 135 | {"label":"T", "x":5.5, "y":2}, | ||
| 136 | {"label":"Y", "x":6.5, "y":2}, | ||
| 137 | {"label":"U", "x":7.5, "y":2}, | ||
| 138 | {"label":"I", "x":8.5, "y":2}, | ||
| 139 | {"label":"O", "x":9.5, "y":2}, | ||
| 140 | {"label":"P", "x":10.5, "y":2}, | ||
| 141 | {"label":"{", "x":11.5, "y":2}, | ||
| 142 | {"label":"}", "x":12.5, "y":2}, | ||
| 143 | {"label":"|", "x":13.5, "y":2, "w":1.5}, | ||
| 144 | {"label":"End", "x":15, "y":2}, | ||
| 145 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
| 146 | {"label":"A", "x":1.75, "y":3}, | ||
| 147 | {"label":"S", "x":2.75, "y":3}, | ||
| 148 | {"label":"D", "x":3.75, "y":3}, | ||
| 149 | {"label":"F", "x":4.75, "y":3}, | ||
| 150 | {"label":"G", "x":5.75, "y":3}, | ||
| 151 | {"label":"H", "x":6.75, "y":3}, | ||
| 152 | {"label":"J", "x":7.75, "y":3}, | ||
| 153 | {"label":"K", "x":8.75, "y":3}, | ||
| 154 | {"label":"L", "x":9.75, "y":3}, | ||
| 155 | {"label":":", "x":10.75, "y":3}, | ||
| 156 | {"label":"\"", "x":11.75, "y":3}, | ||
| 157 | {"label":"Enter", "x":12.75, "y":3, "w":2.25}, | ||
| 158 | {"label":"PgUp", "x":15, "y":3}, | ||
| 159 | {"label":"Shift", "x":0, "y":4, "w":1.25}, | ||
| 160 | {"label":"|", "x":1.25, "y":4}, | ||
| 161 | {"label":"Z", "x":2.25, "y":4}, | ||
| 162 | {"label":"X", "x":3.25, "y":4}, | ||
| 163 | {"label":"C", "x":4.25, "y":4}, | ||
| 164 | {"label":"V", "x":5.25, "y":4}, | ||
| 165 | {"label":"B", "x":6.25, "y":4}, | ||
| 166 | {"label":"N", "x":7.25, "y":4}, | ||
| 167 | {"label":"M", "x":8.25, "y":4}, | ||
| 168 | {"label":"<", "x":9.25, "y":4}, | ||
| 169 | {"label":">", "x":10.25, "y":4}, | ||
| 170 | {"label":"?", "x":11.25, "y":4}, | ||
| 171 | {"label":"Shift", "x":12.25, "y":4, "w":1.75}, | ||
| 172 | {"label":"↑", "x":14, "y":4}, | ||
| 173 | {"label":"PgDn", "x":15, "y":4}, | ||
| 174 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
| 175 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
| 176 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
| 177 | {"x":3.75, "y":5, "w":6.25}, | ||
| 178 | {"label":"Alt", "x":10, "y":5}, | ||
| 179 | {"label":"Win", "x":11, "y":5}, | ||
| 180 | {"label":"Ctrl", "x":12, "y":5}, | ||
| 181 | {"label":"←", "x":13, "y":5}, | ||
| 182 | {"label":"↓", "x":14, "y":5}, | ||
| 183 | {"label":"→", "x":15, "y":5} | ||
| 184 | ] | ||
| 185 | } | ||
| 186 | } | ||
| 187 | } | ||
diff --git a/keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c b/keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c new file mode 100644 index 000000000..817b3cbdd --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/continuous_fnrow/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_continuous_fnrow( /* Base */ | ||
| 20 | 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, KC_SLCK, KC_PAUS, | ||
| 21 | 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, KC_HOME, | ||
| 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, KC_END, | ||
| 23 | MO(1), 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_PGUP, | ||
| 24 | KC_LSFT, KC_BSLS, 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_PGDN, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_continuous_fnrow( /* Fn */ | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_STEP, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ) | ||
| 35 | }; | ||
diff --git a/keyboards/quad_h/lb75/keymaps/continuous_fnrow/readme.md b/keyboards/quad_h/lb75/keymaps/continuous_fnrow/readme.md new file mode 100644 index 000000000..be0223d1a --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/continuous_fnrow/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The continuous fnrow keymap for LB75 | ||
| 2 | |||
| 3 | Non-blockered upper row \ No newline at end of file | ||
diff --git a/keyboards/quad_h/lb75/keymaps/default/keymap.c b/keyboards/quad_h/lb75/keymaps/default/keymap.c new file mode 100644 index 000000000..817b3cbdd --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/default/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_continuous_fnrow( /* Base */ | ||
| 20 | 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, KC_SLCK, KC_PAUS, | ||
| 21 | 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, KC_HOME, | ||
| 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, KC_END, | ||
| 23 | MO(1), 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_PGUP, | ||
| 24 | KC_LSFT, KC_BSLS, 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_PGDN, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_continuous_fnrow( /* Fn */ | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_STEP, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ) | ||
| 35 | }; | ||
diff --git a/keyboards/quad_h/lb75/keymaps/default/readme.md b/keyboards/quad_h/lb75/keymaps/default/readme.md new file mode 100644 index 000000000..6d3bb42bc --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for LB75 | ||
| 2 | |||
| 3 | Nothing special \ No newline at end of file | ||
diff --git a/keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c b/keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c new file mode 100644 index 000000000..5a3a58482 --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/divided_fnrow/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_divided_fnrow( /* Base */ | ||
| 20 | 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, | ||
| 21 | 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, KC_HOME, | ||
| 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, KC_END, | ||
| 23 | MO(1), 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_PGUP, | ||
| 24 | KC_LSFT, KC_BSLS, 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_PGDN, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_divided_fnrow( /* Fn */ | ||
| 28 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_STEP, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ) | ||
| 35 | }; | ||
diff --git a/keyboards/quad_h/lb75/keymaps/divided_fnrow/readme.md b/keyboards/quad_h/lb75/keymaps/divided_fnrow/readme.md new file mode 100644 index 000000000..0a2f0b5de --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/divided_fnrow/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The divided fnrow keymap for LB75 | ||
| 2 | |||
| 3 | Blockered upper row \ No newline at end of file | ||
diff --git a/keyboards/quad_h/lb75/keymaps/via/keymap.c b/keyboards/quad_h/lb75/keymaps/via/keymap.c new file mode 100644 index 000000000..9df605dbb --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/via/keymap.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_continuous_fnrow( /* Base */ | ||
| 20 | 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, KC_SLCK, KC_PAUS, | ||
| 21 | 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, KC_HOME, | ||
| 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, KC_END, | ||
| 23 | MO(1), 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_PGUP, | ||
| 24 | KC_LSFT, KC_BSLS, 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_PGDN, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_continuous_fnrow( /* Fn */ | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_STEP, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ), | ||
| 35 | [2] = LAYOUT_continuous_fnrow( | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 42 | ), | ||
| 43 | [3] = LAYOUT_continuous_fnrow( | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 50 | ) | ||
| 51 | }; | ||
diff --git a/keyboards/quad_h/lb75/keymaps/via/readme.md b/keyboards/quad_h/lb75/keymaps/via/readme.md new file mode 100644 index 000000000..943c015c1 --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/via/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The via keymap for LB75 | ||
| 2 | |||
| 3 | For use with VIA configurator \ No newline at end of file | ||
diff --git a/keyboards/quad_h/lb75/keymaps/via/rules.mk b/keyboards/quad_h/lb75/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/quad_h/lb75/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/quad_h/lb75/lb75.c b/keyboards/quad_h/lb75/lb75.c new file mode 100644 index 000000000..a18f45adb --- /dev/null +++ b/keyboards/quad_h/lb75/lb75.c | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "lb75.h" | ||
| 17 | |||
| 18 | |||
| 19 | void matrix_init_kb(void) { | ||
| 20 | // put your keyboard start-up code here | ||
| 21 | // runs once when the firmware starts up | ||
| 22 | |||
| 23 | setPinOutput(B1); | ||
| 24 | setPinOutput(B2); | ||
| 25 | |||
| 26 | matrix_init_user(); | ||
| 27 | } | ||
| 28 | |||
| 29 | bool led_update_kb(led_t led_state) { | ||
| 30 | bool res = led_update_user(led_state); | ||
| 31 | |||
| 32 | if(res) { | ||
| 33 | writePin(B1, !led_state.caps_lock); | ||
| 34 | writePin(B2, !led_state.scroll_lock); | ||
| 35 | } | ||
| 36 | |||
| 37 | return res; | ||
| 38 | } | ||
| 39 | |||
diff --git a/keyboards/quad_h/lb75/lb75.h b/keyboards/quad_h/lb75/lb75.h new file mode 100644 index 000000000..697a5fbb2 --- /dev/null +++ b/keyboards/quad_h/lb75/lb75.h | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* Copyright 2019 Ryota Goto | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_continuous_fnrow( \ | ||
| 29 | K000, K010, K001, K011, K002, K012, K003, K013, K004, K014, K005, K015, K006, K016, K007, K017, \ | ||
| 30 | K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, \ | ||
| 31 | K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K047, K057, \ | ||
| 32 | K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, K077, \ | ||
| 33 | K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K087, K097, \ | ||
| 34 | K100, K110, K101, K103, K105, K115, K106, K116, K107, K117 \ | ||
| 35 | ) \ | ||
| 36 | { \ | ||
| 37 | { K000, K001, K002, K003, K004, K005, K006, K007 }, \ | ||
| 38 | { K010, K011, K012, K013, K014, K015, K016, K017 }, \ | ||
| 39 | { K020, K021, K022, K023, K024, K025, K026, K027 }, \ | ||
| 40 | { K030, K031, K032, K033, K034, K035, K036, K037 }, \ | ||
| 41 | { K040, K041, K042, K043, K044, K045, K046, K047 }, \ | ||
| 42 | { K050, K051, K052, K053, K054, K055, KC_NO, K057 }, \ | ||
| 43 | { K060, K061, K062, K063, K064, K065, KC_NO, KC_NO }, \ | ||
| 44 | { K070, K071, K072, K073, K074, K075, K076, K077 }, \ | ||
| 45 | { K080, K081, K082, K083, K084, K085, K086, K087 }, \ | ||
| 46 | { K090, K091, K092, K093, K094, K095, KC_NO, K097 }, \ | ||
| 47 | { K100, K101, KC_NO, K103, KC_NO, K105, K106, K107 }, \ | ||
| 48 | { K110, KC_NO, KC_NO, KC_NO, KC_NO, K115, K116, K117 } \ | ||
| 49 | } | ||
| 50 | |||
| 51 | #define LAYOUT_divided_fnrow( \ | ||
| 52 | K000, K010, K001, K011, K002, K003, K013, K004, K014, K005, K015, K006, K016, K017, \ | ||
| 53 | K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, \ | ||
| 54 | K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K047, K057, \ | ||
| 55 | K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, K077, \ | ||
| 56 | K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K087, K097, \ | ||
| 57 | K100, K110, K101, K103, K105, K115, K106, K116, K107, K117 \ | ||
| 58 | ) \ | ||
| 59 | { \ | ||
| 60 | { K000, K001, K002, K003, K004, K005, K006, KC_NO }, \ | ||
| 61 | { K010, K011, KC_NO, K013, K014, K015, K016, K017 }, \ | ||
| 62 | { K020, K021, K022, K023, K024, K025, K026, K027 }, \ | ||
| 63 | { K030, K031, K032, K033, K034, K035, K036, K037 }, \ | ||
| 64 | { K040, K041, K042, K043, K044, K045, K046, K047 }, \ | ||
| 65 | { K050, K051, K052, K053, K054, K055, KC_NO, K057 }, \ | ||
| 66 | { K060, K061, K062, K063, K064, K065, KC_NO, KC_NO }, \ | ||
| 67 | { K070, K071, K072, K073, K074, K075, K076, K077 }, \ | ||
| 68 | { K080, K081, K082, K083, K084, K085, K086, K087 }, \ | ||
| 69 | { K090, K091, K092, K093, K094, K095, KC_NO, K097 }, \ | ||
| 70 | { K100, K101, KC_NO, K103, KC_NO, K105, K106, K107 }, \ | ||
| 71 | { K110, KC_NO, KC_NO, KC_NO, KC_NO, K115, K116, K117 } \ | ||
| 72 | } | ||
| 73 | |||
diff --git a/keyboards/quad_h/lb75/readme.md b/keyboards/quad_h/lb75/readme.md new file mode 100644 index 000000000..7f44499f6 --- /dev/null +++ b/keyboards/quad_h/lb75/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # LB75 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | LB75 PCB for QUAD-H | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [ai03](https://github.com/ai03-2725) | ||
| 8 | * Hardware Supported: The LB75 PCB | ||
| 9 | * Hardware Availability: Private | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make quad_h/lb75: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). | ||
diff --git a/keyboards/quad_h/lb75/rules.mk b/keyboards/quad_h/lb75/rules.mk new file mode 100644 index 000000000..37a5d441a --- /dev/null +++ b/keyboards/quad_h/lb75/rules.mk | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 33 | |||
