diff options
author | Erovia <Erovia@users.noreply.github.com> | 2020-03-17 15:34:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 15:34:37 +0100 |
commit | 61da6153081a1928ff7883beafa09320f8befef0 (patch) | |
tree | 7388d764a3fe0fb2cdc5c2a19a28609fcaa9c440 | |
parent | ece14278efe5168ef20298984bff4b1d5eb43e4b (diff) | |
download | qmk_firmware-61da6153081a1928ff7883beafa09320f8befef0.tar.gz qmk_firmware-61da6153081a1928ff7883beafa09320f8befef0.zip |
Add VIA support for LazyDesigners Dimple. (#8447)
* Assign unique VID to LazyDesigners' boards
* Add VIA support for LazyDesigners Dimple
* Apply @fauxpark's suggestions
Co-Authored-By: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/lazydesigners/dimple/config.h | 2 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/keymaps/via/keymap.c | 23 | ||||
-rw-r--r-- | keyboards/lazydesigners/dimple/keymaps/via/rules.mk | 10 | ||||
-rw-r--r-- | keyboards/lazydesigners/the30/config.h | 2 | ||||
-rw-r--r-- | keyboards/lazydesigners/the50/config.h | 2 | ||||
-rw-r--r-- | keyboards/lazydesigners/the60/config.h | 2 |
6 files changed, 37 insertions, 4 deletions
diff --git a/keyboards/lazydesigners/dimple/config.h b/keyboards/lazydesigners/dimple/config.h index 5c36a7252..a72c78cb3 100644 --- a/keyboards/lazydesigners/dimple/config.h +++ b/keyboards/lazydesigners/dimple/config.h | |||
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | #include "config_common.h" | 20 | #include "config_common.h" |
21 | 21 | ||
22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
23 | #define VENDOR_ID 0xFEED | 23 | #define VENDOR_ID 0x4C44 // "LD" |
24 | #define PRODUCT_ID 0x0040 | 24 | #define PRODUCT_ID 0x0040 |
25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
26 | #define MANUFACTURER LazyDesigners | 26 | #define MANUFACTURER LazyDesigners |
diff --git a/keyboards/lazydesigners/dimple/keymaps/via/keymap.c b/keyboards/lazydesigners/dimple/keymaps/via/keymap.c new file mode 100644 index 000000000..47c0156ae --- /dev/null +++ b/keyboards/lazydesigners/dimple/keymaps/via/keymap.c | |||
@@ -0,0 +1,23 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | /* THIS FILE WAS GENERATED! | ||
4 | * | ||
5 | * This file was generated by QMK CLI. You may or may not want to | ||
6 | * edit it directly. | ||
7 | */ | ||
8 | |||
9 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
10 | [0] = LAYOUT(KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, KC_DOT, KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT), | ||
11 | [1] = LAYOUT(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, 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, 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, KC_NO, KC_NO, KC_NO, KC_NO), | ||
12 | [2] = LAYOUT(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, 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, 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, KC_NO, KC_NO, KC_NO, KC_NO), | ||
13 | [3] = LAYOUT(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, 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, 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, KC_NO, KC_NO, KC_NO, KC_NO) | ||
14 | }; | ||
15 | |||
16 | void led_update_user(led_t led_state) { | ||
17 | if (led_state.caps_lock) { | ||
18 | dimple_led_on(); | ||
19 | } else { | ||
20 | dimple_led_off(); | ||
21 | } | ||
22 | return false; | ||
23 | } | ||
diff --git a/keyboards/lazydesigners/dimple/keymaps/via/rules.mk b/keyboards/lazydesigners/dimple/keymaps/via/rules.mk new file mode 100644 index 000000000..f2e549c7b --- /dev/null +++ b/keyboards/lazydesigners/dimple/keymaps/via/rules.mk | |||
@@ -0,0 +1,10 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
3 | # These features are not (yet) supported by VIA | ||
4 | LEADER_ENABLE = no | ||
5 | FAUXCLICKY_ENABLE = no | ||
6 | MIDI_ENABLE = no | ||
7 | BLUETOOTH_ENABLE = no | ||
8 | KEY_LOCK_ENABLE = no | ||
9 | TERMINAL_ENABLE = no | ||
10 | MOUSEKEY_ENABLE = no | ||
diff --git a/keyboards/lazydesigners/the30/config.h b/keyboards/lazydesigners/the30/config.h index fdd76fe73..63b1637c2 100644 --- a/keyboards/lazydesigners/the30/config.h +++ b/keyboards/lazydesigners/the30/config.h | |||
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | #include "config_common.h" | 20 | #include "config_common.h" |
21 | 21 | ||
22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
23 | #define VENDOR_ID 0xFEED | 23 | #define VENDOR_ID 0x4C44 // "LD" |
24 | #define PRODUCT_ID 0x0030 | 24 | #define PRODUCT_ID 0x0030 |
25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
26 | #define MANUFACTURER LazyDesigners | 26 | #define MANUFACTURER LazyDesigners |
diff --git a/keyboards/lazydesigners/the50/config.h b/keyboards/lazydesigners/the50/config.h index 72246eaba..c46dcbeb1 100644 --- a/keyboards/lazydesigners/the50/config.h +++ b/keyboards/lazydesigners/the50/config.h | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "config_common.h" | 3 | #include "config_common.h" |
4 | 4 | ||
5 | /* USB Device descriptor parameter */ | 5 | /* USB Device descriptor parameter */ |
6 | #define VENDOR_ID 0xFEED | 6 | #define VENDOR_ID 0x4C44 // "LD" |
7 | #define PRODUCT_ID 0x0050 | 7 | #define PRODUCT_ID 0x0050 |
8 | #define DEVICE_VER 0x0001 | 8 | #define DEVICE_VER 0x0001 |
9 | #define MANUFACTURER LazyDesigners | 9 | #define MANUFACTURER LazyDesigners |
diff --git a/keyboards/lazydesigners/the60/config.h b/keyboards/lazydesigners/the60/config.h index d6bd2205c..2929ad2ad 100644 --- a/keyboards/lazydesigners/the60/config.h +++ b/keyboards/lazydesigners/the60/config.h | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "config_common.h" | 3 | #include "config_common.h" |
4 | 4 | ||
5 | /* USB Device descriptor parameter */ | 5 | /* USB Device descriptor parameter */ |
6 | #define VENDOR_ID 0xFEED | 6 | #define VENDOR_ID 0x4C44 // "LD" |
7 | #define PRODUCT_ID 0x0060 | 7 | #define PRODUCT_ID 0x0060 |
8 | #define DEVICE_VER 0x0001 | 8 | #define DEVICE_VER 0x0001 |
9 | #define MANUFACTURER LazyDesigners | 9 | #define MANUFACTURER LazyDesigners |