diff options
| author | jackytrabbit <jacky_lijun@126.com> | 2020-11-19 01:43:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 17:43:44 +0000 |
| commit | 1512e07817cf48480b9e84f5edd2e439580cd3b4 (patch) | |
| tree | f8ac33183b51913636d2c5063ab932bfd840841e | |
| parent | ad5cbe59820ac1f9922f2db2d6d1e7f2a8f50519 (diff) | |
| download | qmk_firmware-1512e07817cf48480b9e84f5edd2e439580cd3b4.tar.gz qmk_firmware-1512e07817cf48480b9e84f5edd2e439580cd3b4.zip | |
Add support for keyboard 'DimplePlus' (#10881)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/config.h | 51 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/dimpleplus.c | 1 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/dimpleplus.h | 33 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/info.json | 68 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/keymaps/default/keymap.c | 43 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/lazydesigners/dimpleplus/rules.mk | 23 |
7 files changed, 238 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/dimpleplus/config.h b/keyboards/lazydesigners/dimpleplus/config.h new file mode 100644 index 000000000..d85d72412 --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/config.h | |||
| @@ -0,0 +1,51 @@ | |||
| 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 0x0061 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER LAZYDESIGNERS | ||
| 27 | #define PRODUCT Dimpleplus | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | #define MATRIX_ROW_PINS { B3, F0, E6, F4, F5 } | ||
| 34 | #define MATRIX_COL_PINS { F1, D5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4 } | ||
| 35 | |||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | #define BACKLIGHT_PIN B7 | ||
| 39 | // #define BACKLIGHT_BREATHING | ||
| 40 | #define BACKLIGHT_LEVELS 3 | ||
| 41 | |||
| 42 | /* RBG underglow */ | ||
| 43 | #define RGB_DI_PIN D2 | ||
| 44 | #ifdef RGB_DI_PIN | ||
| 45 | #define RGBLIGHT_ANIMATIONS | ||
| 46 | #define RGBLIGHT_SLEEP | ||
| 47 | #define RGBLED_NUM 8 | ||
| 48 | /* #define RGBLIGHT_HUE_STEP 8 */ | ||
| 49 | /* #define RGBLIGHT_SAT_STEP 8 */ | ||
| 50 | /* #define RGBLIGHT_VAL_STEP 8 */ | ||
| 51 | #endif | ||
diff --git a/keyboards/lazydesigners/dimpleplus/dimpleplus.c b/keyboards/lazydesigners/dimpleplus/dimpleplus.c new file mode 100644 index 000000000..36eed8cc1 --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/dimpleplus.c | |||
| @@ -0,0 +1 @@ | |||
| #include "dimpleplus.h" | |||
diff --git a/keyboards/lazydesigners/dimpleplus/dimpleplus.h b/keyboards/lazydesigners/dimpleplus/dimpleplus.h new file mode 100644 index 000000000..7664b8760 --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/dimpleplus.h | |||
| @@ -0,0 +1,33 @@ | |||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT( \ | ||
| 22 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 23 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ | ||
| 24 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \ | ||
| 25 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, \ | ||
| 26 | K400, K402, K403, K404, K406, K407, K408, K409 \ | ||
| 27 | ) { \ | ||
| 28 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 29 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \ | ||
| 30 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \ | ||
| 31 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO }, \ | ||
| 32 | { K400, KC_NO, K402, K403, K404, KC_NO, K406, K407, K408, K409, KC_NO, KC_NO } \ | ||
| 33 | } | ||
diff --git a/keyboards/lazydesigners/dimpleplus/info.json b/keyboards/lazydesigners/dimpleplus/info.json new file mode 100644 index 000000000..4ad13f374 --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/info.json | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Dimpleplus", | ||
| 3 | "url": "http://lazydesigners.cn", | ||
| 4 | "maintainer": "LAZYDESIGNERS", | ||
| 5 | "width": 12.5, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K000 (B3,F1)", "x":0, "y":0}, | ||
| 11 | {"label":"K001 (B3,D5)", "x":1.5, "y":0}, | ||
| 12 | {"label":"K002 (B3,F6)", "x":2.5, "y":0}, | ||
| 13 | {"label":"K003 (B3,F7)", "x":3.5, "y":0}, | ||
| 14 | {"label":"K004 (B3,C7)", "x":4.5, "y":0}, | ||
| 15 | {"label":"K005 (B3,C6)", "x":5.5, "y":0}, | ||
| 16 | {"label":"K006 (B3,B6)", "x":6.5, "y":0}, | ||
| 17 | {"label":"K007 (B3,B5)", "x":7.5, "y":0}, | ||
| 18 | {"label":"K008 (B3,B4)", "x":8.5, "y":0}, | ||
| 19 | {"label":"K009 (B3,D7)", "x":9.5, "y":0}, | ||
| 20 | {"label":"K010 (B3,D6)", "x":10.5, "y":0}, | ||
| 21 | {"label":"K011 (B3,D4)", "x":11.5, "y":0}, | ||
| 22 | {"label":"K100 (F0,F1)", "x":0, "y":1.25}, | ||
| 23 | {"label":"K101 (F0,D5)", "x":1, "y":1.25}, | ||
| 24 | {"label":"K102 (F0,F6)", "x":2, "y":1.25}, | ||
| 25 | {"label":"K103 (F0,F7)", "x":3, "y":1.25}, | ||
| 26 | {"label":"K104 (F0,C7)", "x":4, "y":1.25}, | ||
| 27 | {"label":"K105 (F0,C6)", "x":5, "y":1.25}, | ||
| 28 | {"label":"K106 (F0,B6)", "x":6, "y":1.25}, | ||
| 29 | {"label":"K107 (F0,B5)", "x":7, "y":1.25}, | ||
| 30 | {"label":"K108 (F0,B4)", "x":8, "y":1.25}, | ||
| 31 | {"label":"K109 (F0,D7)", "x":9, "y":1.25}, | ||
| 32 | {"label":"K110 (F0,D6)", "x":10, "y":1.25}, | ||
| 33 | {"label":"K111 (F0,D4)", "x":11, "y":1.25, "w":1.5}, | ||
| 34 | {"label":"K200 (E6,F1)", "x":0, "y":2.25, "w":1.25}, | ||
| 35 | {"label":"K201 (E6,D5)", "x":1.25, "y":2.25}, | ||
| 36 | {"label":"K202 (E6,F6)", "x":2.25, "y":2.25}, | ||
| 37 | {"label":"K203 (E6,F7)", "x":3.25, "y":2.25}, | ||
| 38 | {"label":"K204 (E6,C7)", "x":4.25, "y":2.25}, | ||
| 39 | {"label":"K205 (E6,C6)", "x":5.25, "y":2.25}, | ||
| 40 | {"label":"K206 (E6,B6)", "x":6.25, "y":2.25}, | ||
| 41 | {"label":"K207 (E6,B5)", "x":7.25, "y":2.25}, | ||
| 42 | {"label":"K208 (E6,B4)", "x":8.25, "y":2.25}, | ||
| 43 | {"label":"K209 (E6,D7)", "x":9.25, "y":2.25}, | ||
| 44 | {"label":"K210 (E6,D6)", "x":10.25, "y":2.25}, | ||
| 45 | {"label":"K211 (E6,D4)", "x":11.25, "y":2.25, "w":1.25}, | ||
| 46 | {"label":"K300 (F4,F1)", "x":0, "y":3.25, "w":1.75}, | ||
| 47 | {"label":"K301 (F4,D5)", "x":1.75, "y":3.25}, | ||
| 48 | {"label":"K302 (F4,F6)", "x":2.75, "y":3.25}, | ||
| 49 | {"label":"K303 (F4,F7)", "x":3.75, "y":3.25}, | ||
| 50 | {"label":"K304 (F4,C7)", "x":4.75, "y":3.25}, | ||
| 51 | {"label":"K305 (F4,C6)", "x":5.75, "y":3.25}, | ||
| 52 | {"label":"K306 (F4,B6)", "x":6.75, "y":3.25}, | ||
| 53 | {"label":"K307 (F4,B5)", "x":7.75, "y":3.25}, | ||
| 54 | {"label":"K308 (F4,B4)", "x":8.75, "y":3.25}, | ||
| 55 | {"label":"K309 (F4,D7)", "x":9.75, "y":3.25}, | ||
| 56 | {"label":"K310 (F4,D6)", "x":10.75, "y":3.25, "w":1.75}, | ||
| 57 | {"label":"K400 (F5,F1)", "x":0.75, "y":4.25}, | ||
| 58 | {"label":"K402 (F5,F6)", "x":1.75, "y":4.25}, | ||
| 59 | {"label":"K403 (F5,F7)", "x":2.75, "y":4.25}, | ||
| 60 | {"label":"K404 (F5,C7)", "x":3.75, "y":4.25, "w":2.25}, | ||
| 61 | {"label":"K406 (F5,B6)", "x":6, "y":4.25, "w":2.75}, | ||
| 62 | {"label":"K407 (F5,B5)", "x":8.75, "y":4.25}, | ||
| 63 | {"label":"K408 (F5,B4)", "x":9.75, "y":4.25}, | ||
| 64 | {"label":"K409 (F5,D7)", "x":10.75, "y":4.25} | ||
| 65 | ] | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } | ||
diff --git a/keyboards/lazydesigners/dimpleplus/keymaps/default/keymap.c b/keyboards/lazydesigners/dimpleplus/keymaps/default/keymap.c new file mode 100644 index 000000000..17b9aec47 --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/keymaps/default/keymap.c | |||
| @@ -0,0 +1,43 @@ | |||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #define LT2_TAB LT(2, KC_TAB) | ||
| 19 | #define LT1_SPC LT(1, KC_SPC) | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | [0] = LAYOUT( | ||
| 23 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 24 | KC_GRV, 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_SCLN, KC_ENT, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, MO(2), | ||
| 27 | KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT( | ||
| 30 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RESET, | ||
| 31 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, | ||
| 32 | KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, KC_SCLN, KC_SLSH, | ||
| 33 | KC_NO, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_NO, KC_NO, KC_NO, KC_DOT, KC_NO, | ||
| 34 | RGB_TOG, RGB_MOD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_QUOT | ||
| 35 | ), | ||
| 36 | [2] = LAYOUT( | ||
| 37 | KC_NO, 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_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, | ||
| 39 | KC_NO, KC_NO, KC_NO, KC_DEL, KC_NO, KC_NO, KC_LCBR, KC_RCBR, KC_UNDS, KC_PLUS, KC_COLN, KC_QUES, | ||
| 40 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LABK, KC_RABK, KC_NO, | ||
| 41 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_DQUO | ||
| 42 | ), | ||
| 43 | }; | ||
diff --git a/keyboards/lazydesigners/dimpleplus/readme.md b/keyboards/lazydesigners/dimpleplus/readme.md new file mode 100644 index 000000000..fc5881cdc --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Dimpleplus | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) | ||
| 6 | * Hardware Supported: Dimple Plus | ||
| 7 | * Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make lazydesigners/dimpleplus:default | ||
| 12 | |||
| 13 | Flashing example for this keyboard: | ||
| 14 | |||
| 15 | make lazydesigners/dimpleplus:default:flash | ||
| 16 | |||
| 17 | **Reset Key:** To enter the bootloader, either push the RESET button on the PCB or the RESET button on the FN layer. | ||
| 18 | |||
| 19 | 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/dimpleplus/rules.mk b/keyboards/lazydesigners/dimpleplus/rules.mk new file mode 100644 index 000000000..3fd7208db --- /dev/null +++ b/keyboards/lazydesigners/dimpleplus/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 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 | ||
| 23 | |||
