From 209e82636d5940b793ce66c388ee34b23a1a64f2 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Tue, 24 Aug 2021 23:24:21 +0800 Subject: [PATCH 1/8] Add support for lazydesigners/cassette8 Add support for lazydesigners/cassette8 --- keyboards/lazydesigners/cassette8/cassette8.c | 17 +++++++ keyboards/lazydesigners/cassette8/cassette8.h | 28 +++++++++++ keyboards/lazydesigners/cassette8/config.h | 50 +++++++++++++++++++ keyboards/lazydesigners/cassette8/info.json | 22 ++++++++ .../cassette8/keymaps/default/keymap.c | 34 +++++++++++++ .../cassette8/keymaps/via/keymap.c | 34 +++++++++++++ .../cassette8/keymaps/via/rules.mk | 2 + keyboards/lazydesigners/cassette8/readme.md | 21 ++++++++ keyboards/lazydesigners/cassette8/rules.mk | 34 +++++++++++++ 9 files changed, 242 insertions(+) create mode 100755 keyboards/lazydesigners/cassette8/cassette8.c create mode 100755 keyboards/lazydesigners/cassette8/cassette8.h create mode 100755 keyboards/lazydesigners/cassette8/config.h create mode 100755 keyboards/lazydesigners/cassette8/info.json create mode 100755 keyboards/lazydesigners/cassette8/keymaps/default/keymap.c create mode 100755 keyboards/lazydesigners/cassette8/keymaps/via/keymap.c create mode 100755 keyboards/lazydesigners/cassette8/keymaps/via/rules.mk create mode 100755 keyboards/lazydesigners/cassette8/readme.md create mode 100755 keyboards/lazydesigners/cassette8/rules.mk diff --git a/keyboards/lazydesigners/cassette8/cassette8.c b/keyboards/lazydesigners/cassette8/cassette8.c new file mode 100755 index 000000000000..a36de6d7a638 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/cassette8.c @@ -0,0 +1,17 @@ +/* Copyright 2021 LAZYDESIGNERS + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "cassette8.h" diff --git a/keyboards/lazydesigners/cassette8/cassette8.h b/keyboards/lazydesigners/cassette8/cassette8.h new file mode 100755 index 000000000000..9b640638f6d2 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/cassette8.h @@ -0,0 +1,28 @@ +/* Copyright 2021 LAZYDESIGNERS + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include "quantum.h" + + +#define LAYOUT( \ + K00, K01, K02, K03, \ + K10, K11, K12, K13 \ +) { \ + { K00, K01, K02, K03, }, \ + { K10, K11, K12, K13 }, \ +} diff --git a/keyboards/lazydesigners/cassette8/config.h b/keyboards/lazydesigners/cassette8/config.h new file mode 100755 index 000000000000..c3229982ed3c --- /dev/null +++ b/keyboards/lazydesigners/cassette8/config.h @@ -0,0 +1,50 @@ +/* Copyright 2021 LAZYDESIGNERS + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x4C44 // "LD" +#define PRODUCT_ID 0x0008 +#define DEVICE_VER 0x0001 +#define MANUFACTURER LAZYDESIGNERS +#define PRODUCT Cassette8 +#define DESCRIPTION A macropad with 8 keys + +/* key matrix size */ +#define MATRIX_ROWS 2 +#define MATRIX_COLS 4 + +/* key matrix pins */ +#define MATRIX_ROW_PINS { B3, B2 } +#define MATRIX_COL_PINS { B5, B4, B1, B0 } + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* RBG underglow */ +#define RGB_DI_PIN C2 +#ifdef RGB_DI_PIN + #define RGBLIGHT_ANIMATIONS + #define RGBLIGHT_SLEEP + #define RGBLED_NUM 15 + /* #define RGBLIGHT_HUE_STEP 8 */ + /* #define RGBLIGHT_SAT_STEP 8 */ + /* #define RGBLIGHT_VAL_STEP 8 */ +#endif + diff --git a/keyboards/lazydesigners/cassette8/info.json b/keyboards/lazydesigners/cassette8/info.json new file mode 100755 index 000000000000..b8d17b08c1cb --- /dev/null +++ b/keyboards/lazydesigners/cassette8/info.json @@ -0,0 +1,22 @@ +{ + "keyboard_name": "Cassette8", + "url": "http://lazydesigners.cn", + "maintainer": "Jacky@LAZYDESIGNERS", + "width": 4, + "height": 2, + "layouts": { + "LAYOUT": { + "key_count": 8, + "layout": [ + {"label":"1", "x":0, "y":0}, + {"label":"2", "x":1, "y":0}, + {"label":"3", "x":2, "y":0}, + {"label":"4", "x":3, "y":0}, + {"label":"5", "x":0, "y":1}, + {"label":"6", "x":1, "y":1}, + {"label":"7", "x":2, "y":1}, + {"label":"8", "x":3, "y":1} + ] + } + } +} diff --git a/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c b/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c new file mode 100755 index 000000000000..3d1eb395c663 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/default/keymap.c @@ -0,0 +1,34 @@ +/* Copyright 2021 LAZYDESIGNERS + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include QMK_KEYBOARD_H + +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_1, KC_2, KC_3, KC_4, + KC_5, KC_6, KC_7, LT1_SPC + ), + [1] = LAYOUT( + RESET, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT( + KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO + ), +}; diff --git a/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c b/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c new file mode 100755 index 000000000000..3d1eb395c663 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/via/keymap.c @@ -0,0 +1,34 @@ +/* Copyright 2021 LAZYDESIGNERS + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include QMK_KEYBOARD_H + +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_1, KC_2, KC_3, KC_4, + KC_5, KC_6, KC_7, LT1_SPC + ), + [1] = LAYOUT( + RESET, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT( + KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO + ), +}; diff --git a/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk b/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk new file mode 100755 index 000000000000..36b7ba9cbc98 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes diff --git a/keyboards/lazydesigners/cassette8/readme.md b/keyboards/lazydesigners/cassette8/readme.md new file mode 100755 index 000000000000..7211bf5e97e1 --- /dev/null +++ b/keyboards/lazydesigners/cassette8/readme.md @@ -0,0 +1,21 @@ +# Cassette8 + +A 8 key macropad designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn). + +![Cassette8](http://lazydesigners.cn/wp-content/uploads/2021/05/cassette8.jpg) + +* Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) +* Hardware Supported: Cassette8 +* Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn) + +Make example for this keyboard (after setting up your build environment): + + make lazydesigners/cassette8:default + +Flashing example for this keyboard: + + make lazydesigners/cassette8:default:flash + +**Reset Key:** To enter the bootloader, either push the RESET button on the PCB or the RESET button on the FN layer. + +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 000000000000..269e33e2cd9b --- /dev/null +++ b/keyboards/lazydesigners/cassette8/rules.mk @@ -0,0 +1,34 @@ +# MCU name +MCU = atmega32u2 + +# Bootloader selection +# Teensy halfkay +# Pro Micro caterina +# Atmel DFU atmel-dfu +# LUFA DFU lufa-dfu +# QMK DFU qmk-dfu +# ATmega32A bootloadHID +# ATmega328P USBasp +BOOTLOADER = atmel-dfu + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow +MIDI_ENABLE = no # MIDI support +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +AUDIO_ENABLE = no # Audio output on port C6 +FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches +HD44780_ENABLE = no # Enable support for HD44780 based LCDs + + From 0e237e262f5f45301708e4be8d49307af0fdb219 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Wed, 25 Aug 2021 12:48:08 +0800 Subject: [PATCH 2/8] Update keyboards/lazydesigners/cassette8/config.h Co-authored-by: Drashna Jaelre --- keyboards/lazydesigners/cassette8/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/lazydesigners/cassette8/config.h b/keyboards/lazydesigners/cassette8/config.h index c3229982ed3c..cec471133b31 100755 --- a/keyboards/lazydesigners/cassette8/config.h +++ b/keyboards/lazydesigners/cassette8/config.h @@ -24,7 +24,6 @@ #define DEVICE_VER 0x0001 #define MANUFACTURER LAZYDESIGNERS #define PRODUCT Cassette8 -#define DESCRIPTION A macropad with 8 keys /* key matrix size */ #define MATRIX_ROWS 2 From 089a4a880e3da6b843f1d242ac2aac877b79d053 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Wed, 25 Aug 2021 12:48:50 +0800 Subject: [PATCH 3/8] Update keyboards/lazydesigners/cassette8/rules.mk Co-authored-by: Drashna Jaelre --- keyboards/lazydesigners/cassette8/rules.mk | 7 ------- 1 file changed, 7 deletions(-) diff --git a/keyboards/lazydesigners/cassette8/rules.mk b/keyboards/lazydesigners/cassette8/rules.mk index 269e33e2cd9b..dd15c771372e 100755 --- a/keyboards/lazydesigners/cassette8/rules.mk +++ b/keyboards/lazydesigners/cassette8/rules.mk @@ -2,13 +2,6 @@ MCU = atmega32u2 # Bootloader selection -# Teensy halfkay -# Pro Micro caterina -# Atmel DFU atmel-dfu -# LUFA DFU lufa-dfu -# QMK DFU qmk-dfu -# ATmega32A bootloadHID -# ATmega328P USBasp BOOTLOADER = atmel-dfu # Build Options From c61d02975b4d18efd8efbcff748fb7e654176cbd Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Wed, 25 Aug 2021 12:49:00 +0800 Subject: [PATCH 4/8] Update keyboards/lazydesigners/cassette8/rules.mk Co-authored-by: Drashna Jaelre --- keyboards/lazydesigners/cassette8/rules.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/keyboards/lazydesigners/cassette8/rules.mk b/keyboards/lazydesigners/cassette8/rules.mk index dd15c771372e..7b3d77faf3e9 100755 --- a/keyboards/lazydesigners/cassette8/rules.mk +++ b/keyboards/lazydesigners/cassette8/rules.mk @@ -19,9 +19,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow MIDI_ENABLE = no # MIDI support -BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID -AUDIO_ENABLE = no # Audio output on port C6 -FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches -HD44780_ENABLE = no # Enable support for HD44780 based LCDs +BLUETOOTH_ENABLE = no # Enable Bluetooth +AUDIO_ENABLE = no # Audio output From 8dc3472bd45471928a8a022c5cd71d5fe263b861 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Wed, 25 Aug 2021 12:51:53 +0800 Subject: [PATCH 5/8] Update keyboards/lazydesigners/cassette8/config.h Co-authored-by: Drashna Jaelre --- keyboards/lazydesigners/cassette8/config.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/keyboards/lazydesigners/cassette8/config.h b/keyboards/lazydesigners/cassette8/config.h index cec471133b31..ee20577e3dc5 100755 --- a/keyboards/lazydesigners/cassette8/config.h +++ b/keyboards/lazydesigners/cassette8/config.h @@ -39,7 +39,16 @@ /* RBG underglow */ #define RGB_DI_PIN C2 #ifdef RGB_DI_PIN - #define RGBLIGHT_ANIMATIONS +#define RGBLIGHT_EFFECT_BREATHING +#define RGBLIGHT_EFFECT_RAINBOW_MOOD +#define RGBLIGHT_EFFECT_RAINBOW_SWIRL +#define RGBLIGHT_EFFECT_SNAKE +#define RGBLIGHT_EFFECT_KNIGHT +#define RGBLIGHT_EFFECT_CHRISTMAS +#define RGBLIGHT_EFFECT_STATIC_GRADIENT +#define RGBLIGHT_EFFECT_RGB_TEST +#define RGBLIGHT_EFFECT_ALTERNATING +#define RGBLIGHT_EFFECT_TWINKLE #define RGBLIGHT_SLEEP #define RGBLED_NUM 15 /* #define RGBLIGHT_HUE_STEP 8 */ From 8979ed829f4067df2cb26299c50348c593804b16 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Thu, 26 Aug 2021 12:13:30 +0800 Subject: [PATCH 6/8] Update keyboards/lazydesigners/cassette8/rules.mk Co-authored-by: Ryan --- keyboards/lazydesigners/cassette8/rules.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/keyboards/lazydesigners/cassette8/rules.mk b/keyboards/lazydesigners/cassette8/rules.mk index 7b3d77faf3e9..f942a215eaaa 100755 --- a/keyboards/lazydesigners/cassette8/rules.mk +++ b/keyboards/lazydesigners/cassette8/rules.mk @@ -21,5 +21,3 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow MIDI_ENABLE = no # MIDI support BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output - - From b01791305bb62e335d29e18b7fe27d5593a92a87 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Thu, 26 Aug 2021 12:13:38 +0800 Subject: [PATCH 7/8] Update keyboards/lazydesigners/cassette8/rules.mk Co-authored-by: Ryan --- keyboards/lazydesigners/cassette8/rules.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/lazydesigners/cassette8/rules.mk b/keyboards/lazydesigners/cassette8/rules.mk index f942a215eaaa..6cbcba21002c 100755 --- a/keyboards/lazydesigners/cassette8/rules.mk +++ b/keyboards/lazydesigners/cassette8/rules.mk @@ -18,6 +18,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend NKRO_ENABLE = yes # USB Nkey Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -MIDI_ENABLE = no # MIDI support BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output From e0b0868bb22bcd64f363e8cf99bea9f76fde55c8 Mon Sep 17 00:00:00 2001 From: jackytrabbit Date: Thu, 26 Aug 2021 12:13:49 +0800 Subject: [PATCH 8/8] Update keyboards/lazydesigners/cassette8/info.json Co-authored-by: Joel Challis --- keyboards/lazydesigners/cassette8/info.json | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/lazydesigners/cassette8/info.json b/keyboards/lazydesigners/cassette8/info.json index b8d17b08c1cb..173023700f3e 100755 --- a/keyboards/lazydesigners/cassette8/info.json +++ b/keyboards/lazydesigners/cassette8/info.json @@ -6,7 +6,6 @@ "height": 2, "layouts": { "LAYOUT": { - "key_count": 8, "layout": [ {"label":"1", "x":0, "y":0}, {"label":"2", "x":1, "y":0},