diff options
| author | jackytrabbit <jacky_lijun@126.com> | 2020-08-19 10:29:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 19:29:09 -0700 |
| commit | d57bd0f65ca18b854dfdfe019f53474d47bf7b53 (patch) | |
| tree | f76b3de88239e590d6d440a86f448042a88906ab /keyboards/lazydesigners | |
| parent | d9fe85592365259120d9f9e9cd24c8536ab95b98 (diff) | |
| download | qmk_firmware-d57bd0f65ca18b854dfdfe019f53474d47bf7b53.tar.gz qmk_firmware-d57bd0f65ca18b854dfdfe019f53474d47bf7b53.zip | |
[Keyboard] Add support for keyboard 'Bolt' (#10046)
* Add support for keyboard 'Bolt'
Add support for keyboard 'Bolt'
* Update info.json
* Update info.json
* Update keyboards/lazydesigners/bolt/config.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/lazydesigners/bolt/rules.mk
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/lazydesigners/bolt/readme.md
Co-authored-by: Joel Challis <git@zvecr.com>
* Update info.json
* Update keyboards/lazydesigners/bolt/info.json
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/bolt/bolt.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/lazydesigners/bolt/info.json
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/lazydesigners/bolt/info.json
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/lazydesigners/bolt/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/lazydesigners')
| -rw-r--r-- | keyboards/lazydesigners/bolt/bolt.c | 1 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/bolt.h | 32 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/config.h | 47 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/info.json | 59 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/keymaps/default/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/lazydesigners/bolt/rules.mk | 22 |
7 files changed, 222 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/bolt/bolt.c b/keyboards/lazydesigners/bolt/bolt.c new file mode 100644 index 000000000..074d6bfd5 --- /dev/null +++ b/keyboards/lazydesigners/bolt/bolt.c | |||
| @@ -0,0 +1 @@ | |||
| #include "bolt.h" | |||
diff --git a/keyboards/lazydesigners/bolt/bolt.h b/keyboards/lazydesigners/bolt/bolt.h new file mode 100644 index 000000000..412ed7b09 --- /dev/null +++ b/keyboards/lazydesigners/bolt/bolt.h | |||
| @@ -0,0 +1,32 @@ | |||
| 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( \ | ||
| 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, K111, \ | ||
| 25 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K311, \ | ||
| 26 | K300, K301, K303, K304, K306, K307, K308, K309, K310 \ | ||
| 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, KC_NO, K303, K304, KC_NO, K306, K307, K308, K309, K310, K311 } \ | ||
| 32 | } | ||
diff --git a/keyboards/lazydesigners/bolt/config.h b/keyboards/lazydesigners/bolt/config.h new file mode 100644 index 000000000..37006c19e --- /dev/null +++ b/keyboards/lazydesigners/bolt/config.h | |||
| @@ -0,0 +1,47 @@ | |||
| 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 0x0041 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER LAZYDESIGNERS | ||
| 27 | #define PRODUCT Bolt | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | #define MATRIX_ROW_PINS { F0, C7, B6, D5 } | ||
| 34 | #define MATRIX_COL_PINS { F1, F4, F5, F6, F7, C6, B3, B7, D0, D3, D2, D1 } | ||
| 35 | |||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | /* RBG underglow */ | ||
| 39 | #define RGB_DI_PIN E6 | ||
| 40 | #ifdef RGB_DI_PIN | ||
| 41 | #define RGBLIGHT_ANIMATIONS | ||
| 42 | #define RGBLIGHT_SLEEP | ||
| 43 | #define RGBLED_NUM 13 | ||
| 44 | /* #define RGBLIGHT_HUE_STEP 8 */ | ||
| 45 | /* #define RGBLIGHT_SAT_STEP 8 */ | ||
| 46 | /* #define RGBLIGHT_VAL_STEP 8 */ | ||
| 47 | #endif | ||
diff --git a/keyboards/lazydesigners/bolt/info.json b/keyboards/lazydesigners/bolt/info.json new file mode 100644 index 000000000..ee2756bbe --- /dev/null +++ b/keyboards/lazydesigners/bolt/info.json | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Bolt", | ||
| 3 | "url": "http://lazydesigners.cn", | ||
| 4 | "maintainer": "LAZYDESIGNERS", | ||
| 5 | "width": 14.25, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K000 (F0,F1)", "x":0, "y":0}, | ||
| 11 | {"label":"K001 (F0,F4)", "x":1, "y":0}, | ||
| 12 | {"label":"K002 (F0,F5)", "x":2, "y":0}, | ||
| 13 | {"label":"K003 (F0,F6)", "x":3, "y":0}, | ||
| 14 | {"label":"K004 (F0,F7)", "x":4, "y":0}, | ||
| 15 | {"label":"K005 (F0,C6)", "x":5, "y":0}, | ||
| 16 | {"label":"K006 (F0,B3)", "x":7.5, "y":0}, | ||
| 17 | {"label":"K007 (F0,B7)", "x":8.5, "y":0}, | ||
| 18 | {"label":"K008 (F0,D0)", "x":9.5, "y":0}, | ||
| 19 | {"label":"K009 (F0,D3)", "x":10.5, "y":0}, | ||
| 20 | {"label":"K010 (F0,D2)", "x":11.5, "y":0}, | ||
| 21 | {"label":"K011 (F0,D1)", "x":12.5, "y":0, "w":1.75}, | ||
| 22 | {"label":"K100 (C7,F1)", "x":0, "y":1, "w":1.25}, | ||
| 23 | {"label":"K101 (C7,F4)", "x":1.25, "y":1}, | ||
| 24 | {"label":"K102 (C7,F5)", "x":2.25, "y":1}, | ||
| 25 | {"label":"K103 (C7,F6)", "x":3.25, "y":1}, | ||
| 26 | {"label":"K104 (C7,F7)", "x":4.25, "y":1}, | ||
| 27 | {"label":"K105 (C7,C6)", "x":5.25, "y":1}, | ||
| 28 | {"label":"K106 (C7,B3)", "x":7.75, "y":1}, | ||
| 29 | {"label":"K107 (C7,B7)", "x":8.75, "y":1}, | ||
| 30 | {"label":"K108 (C7,D0)", "x":9.75, "y":1}, | ||
| 31 | {"label":"K109 (C7,D3)", "x":10.75, "y":1}, | ||
| 32 | {"label":"K110 (C7,D2)", "x":11.75, "y":1}, | ||
| 33 | {"label":"K111 (C7,D1)", "x":12.75, "y":1, "w":1.5}, | ||
| 34 | {"label":"K200 (B6,F1)", "x":0, "y":2, "w":1.75}, | ||
| 35 | {"label":"K201 (B6,F4)", "x":1.75, "y":2}, | ||
| 36 | {"label":"K202 (B6,F5)", "x":2.75, "y":2}, | ||
| 37 | {"label":"K203 (B6,F6)", "x":3.75, "y":2}, | ||
| 38 | {"label":"K204 (B6,F7)", "x":4.75, "y":2}, | ||
| 39 | {"label":"K205 (B6,C6)", "x":5.75, "y":2}, | ||
| 40 | {"label":"K206 (B6,B3)", "x":7.25, "y":2}, | ||
| 41 | {"label":"K207 (B6,B7)", "x":8.25, "y":2}, | ||
| 42 | {"label":"K208 (B6,D0)", "x":9.25, "y":2}, | ||
| 43 | {"label":"K209 (B6,D3)", "x":10.25, "y":2}, | ||
| 44 | {"label":"K210 (B6,D2)", "x":11.25, "y":2}, | ||
| 45 | {"label":"K211 (B6,D1)", "x":12.25, "y":2}, | ||
| 46 | {"label":"K311 (D5,D1)", "x":13.25, "y":2}, | ||
| 47 | {"label":"K300 (D5,F1)", "x":0, "y":3, "w":1.25}, | ||
| 48 | {"label":"K301 (D5,F4)", "x":1.25, "y":3, "w":1.25}, | ||
| 49 | {"label":"K303 (D5,F6)", "x":3.25, "y":3, "w":1.25}, | ||
| 50 | {"label":"K304 (D5,F7)", "x":4.5, "y":3, "w":2.25}, | ||
| 51 | {"label":"K306 (D5,B3)", "x":7.25, "y":3, "w":2.25}, | ||
| 52 | {"label":"K307 (D5,B7)", "x":9.5, "y":3}, | ||
| 53 | {"label":"K308 (D5,D0)", "x":11.25, "y":3}, | ||
| 54 | {"label":"K309 (D5,D3)", "x":12.25, "y":3}, | ||
| 55 | {"label":"K310 (D5,D2)", "x":13.25, "y":3} | ||
| 56 | ] | ||
| 57 | } | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/keyboards/lazydesigners/bolt/keymaps/default/keymap.c b/keyboards/lazydesigners/bolt/keymaps/default/keymap.c new file mode 100644 index 000000000..d410e60a5 --- /dev/null +++ b/keyboards/lazydesigners/bolt/keymaps/default/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 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_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 24 | LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, MO(2), | ||
| 26 | KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, LT1_SPC, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 27 | ), | ||
| 28 | [1] = LAYOUT( | ||
| 29 | RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, | ||
| 30 | KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 31 | KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 32 | KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 33 | ), | ||
| 34 | [2] = LAYOUT( | ||
| 35 | RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 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, KC_NO, KC_NO, | ||
| 38 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 39 | ), | ||
| 40 | }; | ||
diff --git a/keyboards/lazydesigners/bolt/readme.md b/keyboards/lazydesigners/bolt/readme.md new file mode 100644 index 000000000..d89bca097 --- /dev/null +++ b/keyboards/lazydesigners/bolt/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Bolt | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 40% ergo keyboard designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn). | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) | ||
| 8 | * Hardware Supported: Bolt | ||
| 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/bolt:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make lazydesigners/bolt: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/bolt/rules.mk b/keyboards/lazydesigners/bolt/rules.mk new file mode 100644 index 000000000..38ce53e30 --- /dev/null +++ b/keyboards/lazydesigners/bolt/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 = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
