diff options
| author | jackytrabbit <jacky_lijun@126.com> | 2021-08-27 01:49:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 18:49:36 +0100 |
| commit | ff65185dec6f97be1eb49f17cea526a0d0bbf3d6 (patch) | |
| tree | fad23965973cd0a7b064a54c022c737cbdc00166 /keyboards/lazydesigners | |
| parent | 3fce5e6912d78ec9fff4124b6952e3b8a0d4d3ae (diff) | |
| download | qmk_firmware-ff65185dec6f97be1eb49f17cea526a0d0bbf3d6.tar.gz qmk_firmware-ff65185dec6f97be1eb49f17cea526a0d0bbf3d6.zip | |
Add support for lazydesigners/cassette8 (#14145)
* Add support for lazydesigners/cassette8
Add support for lazydesigners/cassette8
* Update keyboards/lazydesigners/cassette8/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/lazydesigners/cassette8/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/lazydesigners/cassette8/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/lazydesigners/cassette8/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/lazydesigners/cassette8/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/cassette8/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/lazydesigners/cassette8/info.json
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/lazydesigners')
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/cassette8.c | 17 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/cassette8.h | 28 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/config.h | 58 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/info.json | 21 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/keymaps/default/keymap.c | 34 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/keymaps/via/keymap.c | 34 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/keymaps/via/rules.mk | 2 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/readme.md | 21 | ||||
| -rwxr-xr-x | keyboards/lazydesigners/cassette8/rules.mk | 22 |
9 files changed, 237 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/cassette8/cassette8.c b/keyboards/lazydesigners/cassette8/cassette8.c new file mode 100755 index 000000000..a36de6d7a --- /dev/null +++ b/keyboards/lazydesigners/cassette8/cassette8.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 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 "cassette8.h" | ||
diff --git a/keyboards/lazydesigners/cassette8/cassette8.h b/keyboards/lazydesigners/cassette8/cassette8.h new file mode 100755 index 000000000..9b640638f --- /dev/null +++ b/keyboards/lazydesigners/cassette8/cassette8.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* Copyright 2021 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | |||
| 22 | #define LAYOUT( \ | ||
| 23 | K00, K01, K02, K03, \ | ||
| 24 | K10, K11, K12, K13 \ | ||
| 25 | ) { \ | ||
| 26 | { K00, K01, K02, K03, }, \ | ||
| 27 | { K10, K11, K12, K13 }, \ | ||
| 28 | } | ||
diff --git a/keyboards/lazydesigners/cassette8/config.h b/keyboards/lazydesigners/cassette8/config.h new file mode 100755 index 000000000..ee20577e3 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/config.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* Copyright 2021 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 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4C44 // "LD" | ||
| 23 | #define PRODUCT_ID 0x0008 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER LAZYDESIGNERS | ||
| 26 | #define PRODUCT Cassette8 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 2 | ||
| 30 | #define MATRIX_COLS 4 | ||
| 31 | |||
| 32 | /* key matrix pins */ | ||
| 33 | #define MATRIX_ROW_PINS { B3, B2 } | ||
| 34 | #define MATRIX_COL_PINS { B5, B4, B1, B0 } | ||
| 35 | |||
| 36 | /* COL2ROW or ROW2COL */ | ||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | /* RBG underglow */ | ||
| 40 | #define RGB_DI_PIN C2 | ||
| 41 | #ifdef RGB_DI_PIN | ||
| 42 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 43 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 44 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 45 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 46 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 47 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 48 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 49 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 50 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 51 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 52 | #define RGBLIGHT_SLEEP | ||
| 53 | #define RGBLED_NUM 15 | ||
| 54 | /* #define RGBLIGHT_HUE_STEP 8 */ | ||
| 55 | /* #define RGBLIGHT_SAT_STEP 8 */ | ||
| 56 | /* #define RGBLIGHT_VAL_STEP 8 */ | ||
| 57 | #endif | ||
| 58 | |||
diff --git a/keyboards/lazydesigners/cassette8/info.json b/keyboards/lazydesigners/cassette8/info.json new file mode 100755 index 000000000..173023700 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/info.json | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Cassette8", | ||
| 3 | "url": "http://lazydesigners.cn", | ||
| 4 | "maintainer": "Jacky@LAZYDESIGNERS", | ||
| 5 | "width": 4, | ||
| 6 | "height": 2, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"1", "x":0, "y":0}, | ||
| 11 | {"label":"2", "x":1, "y":0}, | ||
| 12 | {"label":"3", "x":2, "y":0}, | ||
| 13 | {"label":"4", "x":3, "y":0}, | ||
| 14 | {"label":"5", "x":0, "y":1}, | ||
| 15 | {"label":"6", "x":1, "y":1}, | ||
| 16 | {"label":"7", "x":2, "y":1}, | ||
| 17 | {"label":"8", "x":3, "y":1} | ||
| 18 | ] | ||
| 19 | } | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c b/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c new file mode 100755 index 000000000..3d1eb395c --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 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 LT1_SPC LT(1, KC_SPC) | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | [0] = LAYOUT( | ||
| 23 | KC_1, KC_2, KC_3, KC_4, | ||
| 24 | KC_5, KC_6, KC_7, LT1_SPC | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT( | ||
| 27 | RESET, KC_NO, KC_NO, KC_NO, | ||
| 28 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 29 | ), | ||
| 30 | [2] = LAYOUT( | ||
| 31 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 32 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c b/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c new file mode 100755 index 000000000..3d1eb395c --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 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 LT1_SPC LT(1, KC_SPC) | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | [0] = LAYOUT( | ||
| 23 | KC_1, KC_2, KC_3, KC_4, | ||
| 24 | KC_5, KC_6, KC_7, LT1_SPC | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT( | ||
| 27 | RESET, KC_NO, KC_NO, KC_NO, | ||
| 28 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 29 | ), | ||
| 30 | [2] = LAYOUT( | ||
| 31 | KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 32 | KC_NO, KC_NO, KC_NO, KC_NO | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk b/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk new file mode 100755 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/lazydesigners/cassette8/readme.md b/keyboards/lazydesigners/cassette8/readme.md new file mode 100755 index 000000000..7211bf5e9 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Cassette8 | ||
| 2 | |||
| 3 | A 8 key macropad designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn). | ||
| 4 | |||
| 5 |  | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) | ||
| 8 | * Hardware Supported: Cassette8 | ||
| 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/cassette8:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make lazydesigners/cassette8: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/cassette8/rules.mk b/keyboards/lazydesigners/cassette8/rules.mk new file mode 100755 index 000000000..6cbcba210 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u2 | ||
| 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 = yes # 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 | ||
