diff options
| author | jackytrabbit <jacky_lijun@126.com> | 2021-01-11 14:40:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-10 22:40:24 -0800 |
| commit | fd80b2581e0345c3aebeb200e3451773fef77728 (patch) | |
| tree | c3d2992e585804efe272cb31812f956521781525 | |
| parent | beace23bca43347e61c3f6915af5666e7918599e (diff) | |
| download | qmk_firmware-fd80b2581e0345c3aebeb200e3451773fef77728.tar.gz qmk_firmware-fd80b2581e0345c3aebeb200e3451773fef77728.zip | |
[Keyboard] Add the 'THE40' (#11317)
* Add support for keyboard 'THE40'
Add support for keyboard 'THE40'
* Update keyboards/lazydesigners/the40/the40.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/lazydesigners/the40/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update the40.h
Add layout option.
* Update info.json
Add layout option.
* Update keymap.c
Change for layout option.
* Update keyboards/lazydesigners/the40/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/the40/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/the40/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/the40/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
| -rw-r--r-- | keyboards/lazydesigners/the40/config.h | 50 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/info.json | 143 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/keymaps/default/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/the40.c | 14 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the40/the40.h | 59 |
7 files changed, 350 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/the40/config.h b/keyboards/lazydesigners/the40/config.h new file mode 100644 index 000000000..b199f23a0 --- /dev/null +++ b/keyboards/lazydesigners/the40/config.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 LAZYDESIGNERS | ||
| 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 0x4C44 // "LD" | ||
| 24 | #define PRODUCT_ID 0x0042 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER LAZYDESIGNERS | ||
| 27 | #define PRODUCT THE40 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | #define MATRIX_ROW_PINS { D0, D1, B6, F5 } | ||
| 34 | #define MATRIX_COL_PINS { F4, F6, F7, B5, B4, D7, D6, D4, D5, D3, D2, B0 } | ||
| 35 | |||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | #define BACKLIGHT_PIN B7 | ||
| 39 | #define BACKLIGHT_BREATHING | ||
| 40 | #define BACKLIGHT_LEVELS 3 | ||
| 41 | |||
| 42 | #define RGB_DI_PIN C7 | ||
| 43 | #ifdef RGB_DI_PIN | ||
| 44 | #define RGBLED_NUM 8 | ||
| 45 | #define RGBLIGHT_HUE_STEP 8 | ||
| 46 | #define RGBLIGHT_SAT_STEP 8 | ||
| 47 | #define RGBLIGHT_VAL_STEP 8 | ||
| 48 | #define RGBLIGHT_SLEEP | ||
| 49 | #define RGBLIGHT_ANIMATIONS | ||
| 50 | #endif | ||
diff --git a/keyboards/lazydesigners/the40/info.json b/keyboards/lazydesigners/the40/info.json new file mode 100644 index 000000000..a02a88a04 --- /dev/null +++ b/keyboards/lazydesigners/the40/info.json | |||
| @@ -0,0 +1,143 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "THE40", | ||
| 3 | "url": "http://lazydesigners.cn", | ||
| 4 | "maintainer": "LAZYDESIGNERS", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K000 (D0,F4)", "x":0, "y":0}, | ||
| 11 | {"label":"K001 (D0,F6)", "x":1, "y":0}, | ||
| 12 | {"label":"K002 (D0,F7)", "x":2, "y":0}, | ||
| 13 | {"label":"K003 (D0,B5)", "x":3, "y":0}, | ||
| 14 | {"label":"K004 (D0,B4)", "x":4, "y":0}, | ||
| 15 | {"label":"K005 (D0,D7)", "x":5, "y":0}, | ||
| 16 | {"label":"K006 (D0,D6)", "x":6, "y":0}, | ||
| 17 | {"label":"K007 (D0,D4)", "x":7, "y":0}, | ||
| 18 | {"label":"K008 (D0,D5)", "x":8, "y":0}, | ||
| 19 | {"label":"K009 (D0,D3)", "x":9, "y":0}, | ||
| 20 | {"label":"K010 (D0,D2)", "x":10, "y":0}, | ||
| 21 | {"label":"K011 (D0,B0)", "x":11, "y":0}, | ||
| 22 | {"label":"K100 (D1,F4)", "x":0, "y":1, "w":1.25}, | ||
| 23 | {"label":"K101 (D1,F6)", "x":1.25, "y":1}, | ||
| 24 | {"label":"K102 (D1,F7)", "x":2.25, "y":1}, | ||
| 25 | {"label":"K103 (D1,B5)", "x":3.25, "y":1}, | ||
| 26 | {"label":"K104 (D1,B4)", "x":4.25, "y":1}, | ||
| 27 | {"label":"K105 (D1,D7)", "x":5.25, "y":1}, | ||
| 28 | {"label":"K106 (D1,D6)", "x":6.25, "y":1}, | ||
| 29 | {"label":"K107 (D1,D4)", "x":7.25, "y":1}, | ||
| 30 | {"label":"K108 (D1,D5)", "x":8.25, "y":1}, | ||
| 31 | {"label":"K109 (D1,D3)", "x":9.25, "y":1}, | ||
| 32 | {"label":"K110 (D1,D2)", "x":10.25, "y":1, "w":1.75}, | ||
| 33 | {"label":"K200 (B6,F4)", "x":0, "y":2, "w":1.75}, | ||
| 34 | {"label":"K201 (B6,F6)", "x":1.75, "y":2}, | ||
| 35 | {"label":"K202 (B6,F7)", "x":2.75, "y":2}, | ||
| 36 | {"label":"K203 (B6,B5)", "x":3.75, "y":2}, | ||
| 37 | {"label":"K204 (B6,B4)", "x":4.75, "y":2}, | ||
| 38 | {"label":"K205 (B6,D7)", "x":5.75, "y":2}, | ||
| 39 | {"label":"K206 (B6,D6)", "x":6.75, "y":2}, | ||
| 40 | {"label":"K207 (B6,D4)", "x":7.75, "y":2}, | ||
| 41 | {"label":"K208 (B6,D5)", "x":8.75, "y":2}, | ||
| 42 | {"label":"K209 (B6,D3)", "x":9.75, "y":2}, | ||
| 43 | {"label":"K210 (B6,D2)", "x":10.75, "y":2, "w":1.25}, | ||
| 44 | {"label":"K300 (F5,F4)", "x":0, "y":3, "w":1.25}, | ||
| 45 | {"label":"K301 (F5,F6)", "x":1.25, "y":3}, | ||
| 46 | {"label":"K302 (F5,F7)", "x":2.25, "y":3, "w":1.25}, | ||
| 47 | {"label":"K304 (F5,B4)", "x":3.5, "y":3, "w":2.25}, | ||
| 48 | {"label":"K306 (F5,D6)", "x":5.75, "y":3, "w":2.75}, | ||
| 49 | {"label":"K308 (F5,D5)", "x":8.5, "y":3, "w":1.25}, | ||
| 50 | {"label":"K309 (F5,D3)", "x":9.75, "y":3}, | ||
| 51 | {"label":"K310 (F5,D2)", "x":10.75, "y":3, "w":1.25} | ||
| 52 | ] | ||
| 53 | }, | ||
| 54 | "LAYOUT_hhkb": { | ||
| 55 | "layout": [ | ||
| 56 | {"label":"K000 (D0,F4)", "x":0, "y":0}, | ||
| 57 | {"label":"K001 (D0,F6)", "x":1, "y":0}, | ||
| 58 | {"label":"K002 (D0,F7)", "x":2, "y":0}, | ||
| 59 | {"label":"K003 (D0,B5)", "x":3, "y":0}, | ||
| 60 | {"label":"K004 (D0,B4)", "x":4, "y":0}, | ||
| 61 | {"label":"K005 (D0,D7)", "x":5, "y":0}, | ||
| 62 | {"label":"K006 (D0,D6)", "x":6, "y":0}, | ||
| 63 | {"label":"K007 (D0,D4)", "x":7, "y":0}, | ||
| 64 | {"label":"K008 (D0,D5)", "x":8, "y":0}, | ||
| 65 | {"label":"K009 (D0,D3)", "x":9, "y":0}, | ||
| 66 | {"label":"K010 (D0,D2)", "x":10, "y":0}, | ||
| 67 | {"label":"K011 (D0,B0)", "x":11, "y":0}, | ||
| 68 | {"label":"K100 (D1,F4)", "x":0, "y":1, "w":1.25}, | ||
| 69 | {"label":"K101 (D1,F6)", "x":1.25, "y":1}, | ||
| 70 | {"label":"K102 (D1,F7)", "x":2.25, "y":1}, | ||
| 71 | {"label":"K103 (D1,B5)", "x":3.25, "y":1}, | ||
| 72 | {"label":"K104 (D1,B4)", "x":4.25, "y":1}, | ||
| 73 | {"label":"K105 (D1,D7)", "x":5.25, "y":1}, | ||
| 74 | {"label":"K106 (D1,D6)", "x":6.25, "y":1}, | ||
| 75 | {"label":"K107 (D1,D4)", "x":7.25, "y":1}, | ||
| 76 | {"label":"K108 (D1,D5)", "x":8.25, "y":1}, | ||
| 77 | {"label":"K109 (D1,D3)", "x":9.25, "y":1}, | ||
| 78 | {"label":"K110 (D1,D2)", "x":10.25, "y":1, "w":1.75}, | ||
| 79 | {"label":"K200 (B6,F4)", "x":0, "y":2, "w":1.75}, | ||
| 80 | {"label":"K201 (B6,F6)", "x":1.75, "y":2}, | ||
| 81 | {"label":"K202 (B6,F7)", "x":2.75, "y":2}, | ||
| 82 | {"label":"K203 (B6,B5)", "x":3.75, "y":2}, | ||
| 83 | {"label":"K204 (B6,B4)", "x":4.75, "y":2}, | ||
| 84 | {"label":"K205 (B6,D7)", "x":5.75, "y":2}, | ||
| 85 | {"label":"K206 (B6,D6)", "x":6.75, "y":2}, | ||
| 86 | {"label":"K207 (B6,D4)", "x":7.75, "y":2}, | ||
| 87 | {"label":"K208 (B6,D5)", "x":8.75, "y":2}, | ||
| 88 | {"label":"K209 (B6,D3)", "x":9.75, "y":2}, | ||
| 89 | {"label":"K210 (B6,D2)", "x":10.75, "y":2, "w":1.25}, | ||
| 90 | {"label":"K301 (F5,F6)", "x":1.25, "y":3}, | ||
| 91 | {"label":"K302 (F5,F7)", "x":2.25, "y":3, "w":1.25}, | ||
| 92 | {"label":"K304 (F5,B4)", "x":3.5, "y":3, "w":2.25}, | ||
| 93 | {"label":"K306 (F5,D6)", "x":5.75, "y":3, "w":2.75}, | ||
| 94 | {"label":"K308 (F5,D5)", "x":8.5, "y":3, "w":1.25}, | ||
| 95 | {"label":"K309 (F5,D3)", "x":9.75, "y":3} | ||
| 96 | ] | ||
| 97 | }, | ||
| 98 | "LAYOUT_wkl": { | ||
| 99 | "layout": [ | ||
| 100 | {"label":"K000 (D0,F4)", "x":0, "y":0}, | ||
| 101 | {"label":"K001 (D0,F6)", "x":1, "y":0}, | ||
| 102 | {"label":"K002 (D0,F7)", "x":2, "y":0}, | ||
| 103 | {"label":"K003 (D0,B5)", "x":3, "y":0}, | ||
| 104 | {"label":"K004 (D0,B4)", "x":4, "y":0}, | ||
| 105 | {"label":"K005 (D0,D7)", "x":5, "y":0}, | ||
| 106 | {"label":"K006 (D0,D6)", "x":6, "y":0}, | ||
| 107 | {"label":"K007 (D0,D4)", "x":7, "y":0}, | ||
| 108 | {"label":"K008 (D0,D5)", "x":8, "y":0}, | ||
| 109 | {"label":"K009 (D0,D3)", "x":9, "y":0}, | ||
| 110 | {"label":"K010 (D0,D2)", "x":10, "y":0}, | ||
| 111 | {"label":"K011 (D0,B0)", "x":11, "y":0}, | ||
| 112 | {"label":"K100 (D1,F4)", "x":0, "y":1, "w":1.25}, | ||
| 113 | {"label":"K101 (D1,F6)", "x":1.25, "y":1}, | ||
| 114 | {"label":"K102 (D1,F7)", "x":2.25, "y":1}, | ||
| 115 | {"label":"K103 (D1,B5)", "x":3.25, "y":1}, | ||
| 116 | {"label":"K104 (D1,B4)", "x":4.25, "y":1}, | ||
| 117 | {"label":"K105 (D1,D7)", "x":5.25, "y":1}, | ||
| 118 | {"label":"K106 (D1,D6)", "x":6.25, "y":1}, | ||
| 119 | {"label":"K107 (D1,D4)", "x":7.25, "y":1}, | ||
| 120 | {"label":"K108 (D1,D5)", "x":8.25, "y":1}, | ||
| 121 | {"label":"K109 (D1,D3)", "x":9.25, "y":1}, | ||
| 122 | {"label":"K110 (D1,D2)", "x":10.25, "y":1, "w":1.75}, | ||
| 123 | {"label":"K200 (B6,F4)", "x":0, "y":2, "w":1.75}, | ||
| 124 | {"label":"K201 (B6,F6)", "x":1.75, "y":2}, | ||
| 125 | {"label":"K202 (B6,F7)", "x":2.75, "y":2}, | ||
| 126 | {"label":"K203 (B6,B5)", "x":3.75, "y":2}, | ||
| 127 | {"label":"K204 (B6,B4)", "x":4.75, "y":2}, | ||
| 128 | {"label":"K205 (B6,D7)", "x":5.75, "y":2}, | ||
| 129 | {"label":"K206 (B6,D6)", "x":6.75, "y":2}, | ||
| 130 | {"label":"K207 (B6,D4)", "x":7.75, "y":2}, | ||
| 131 | {"label":"K208 (B6,D5)", "x":8.75, "y":2}, | ||
| 132 | {"label":"K209 (B6,D3)", "x":9.75, "y":2}, | ||
| 133 | {"label":"K210 (B6,D2)", "x":10.75, "y":2, "w":1.25}, | ||
| 134 | {"label":"K300 (F5,F4)", "x":0, "y":3, "w":1.25}, | ||
| 135 | {"label":"K302 (F5,F7)", "x":2.25, "y":3, "w":1.25}, | ||
| 136 | {"label":"K304 (F5,B4)", "x":3.5, "y":3, "w":2.25}, | ||
| 137 | {"label":"K306 (F5,D6)", "x":5.75, "y":3, "w":2.75}, | ||
| 138 | {"label":"K308 (F5,D5)", "x":8.5, "y":3, "w":1.25}, | ||
| 139 | {"label":"K310 (F5,D2)", "x":10.75, "y":3, "w":1.25} | ||
| 140 | ] | ||
| 141 | } | ||
| 142 | } | ||
| 143 | } | ||
diff --git a/keyboards/lazydesigners/the40/keymaps/default/keymap.c b/keyboards/lazydesigners/the40/keymaps/default/keymap.c new file mode 100644 index 000000000..81e1e7297 --- /dev/null +++ b/keyboards/lazydesigners/the40/keymaps/default/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2020 LAZYDESIGNERS | ||
| 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 | #define LT2_TAB LT(2, KC_TAB) | ||
| 20 | #define LT1_SPC LT(1, KC_SPC) | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | [0] = LAYOUT_all( | ||
| 24 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 25 | LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, MO(2), | ||
| 27 | KC_LCTL, KC_LGUI, KC_RALT, LT1_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_all( | ||
| 30 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, | ||
| 31 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, | ||
| 32 | KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 33 | KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO | ||
| 34 | ), | ||
| 35 | [2] = LAYOUT_all( | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 37 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 38 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 39 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 40 | ), | ||
| 41 | }; | ||
diff --git a/keyboards/lazydesigners/the40/readme.md b/keyboards/lazydesigners/the40/readme.md new file mode 100644 index 000000000..db31c288a --- /dev/null +++ b/keyboards/lazydesigners/the40/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # THE40 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 40% keyboard designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn). | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) | ||
| 8 | * Hardware Supported: THE40 | ||
| 9 | * Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make lazydesigners/the40:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make lazydesigners/the40:default:flash | ||
| 18 | |||
| 19 | **Reset Key:** To enter the bootloader, either push the RESET button on the PCB or the RESET button on the FN layer. | ||
| 20 | |||
| 21 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/lazydesigners/the40/rules.mk b/keyboards/lazydesigners/the40/rules.mk new file mode 100644 index 000000000..27e32f935 --- /dev/null +++ b/keyboards/lazydesigners/the40/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 = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = 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/lazydesigners/the40/the40.c b/keyboards/lazydesigners/the40/the40.c new file mode 100644 index 000000000..cd1a22a9c --- /dev/null +++ b/keyboards/lazydesigners/the40/the40.c | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 LAZYDESIGNERS | ||
| 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 "the40.h" | ||
diff --git a/keyboards/lazydesigners/the40/the40.h b/keyboards/lazydesigners/the40/the40.h new file mode 100644 index 000000000..c41166f2e --- /dev/null +++ b/keyboards/lazydesigners/the40/the40.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 LAZYDESIGNERS | ||
| 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 "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT_all( \ | ||
| 23 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 24 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \ | ||
| 25 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ | ||
| 26 | K300, K301, K302, K304, K306, K308, K309, K310 \ | ||
| 27 | ) \ | ||
| 28 | { \ | ||
| 29 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 30 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, KC_NO }, \ | ||
| 31 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, KC_NO }, \ | ||
| 32 | { K300, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310, KC_NO }, \ | ||
| 33 | } | ||
| 34 | |||
| 35 | #define LAYOUT_hhkb( \ | ||
| 36 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 37 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \ | ||
| 38 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ | ||
| 39 | K301, K302, K304, K306, K308, K309 \ | ||
| 40 | ) \ | ||
| 41 | { \ | ||
| 42 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 43 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, KC_NO }, \ | ||
| 44 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, KC_NO }, \ | ||
| 45 | { K300, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310, KC_NO }, \ | ||
| 46 | } | ||
| 47 | |||
| 48 | #define LAYOUT_wkl( \ | ||
| 49 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 50 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \ | ||
| 51 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ | ||
| 52 | K300, K302, K304, K306, K308, K310 \ | ||
| 53 | ) \ | ||
| 54 | { \ | ||
| 55 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 56 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, KC_NO }, \ | ||
| 57 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, KC_NO }, \ | ||
| 58 | { K300, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310, KC_NO }, \ | ||
| 59 | } | ||
