From ffe6c3d5ed5999f9f92534a826cf93f4ba6518ed Mon Sep 17 00:00:00 2001 From: "Jacky@LAZYDESIGNERS" Date: Wed, 3 Jan 2024 10:58:22 +0800 Subject: [PATCH] Add Cloud vial firmware Add Cloud vial firmware --- keyboards/lazydesigners/cloud/cloud.c | 15 +++ keyboards/lazydesigners/cloud/cloud.h | 49 ++++++++ keyboards/lazydesigners/cloud/config.h | 61 ++++++++++ keyboards/lazydesigners/cloud/info.json | 108 ++++++++++++++++++ .../cloud/keymaps/default/keymap.c | 43 +++++++ .../cloud/keymaps/ortho/keymap.c | 52 +++++++++ .../lazydesigners/cloud/keymaps/via/keymap.c | 52 +++++++++ .../lazydesigners/cloud/keymaps/via/rules.mk | 2 + .../lazydesigners/cloud/keymaps/vial/config.h | 10 ++ .../lazydesigners/cloud/keymaps/vial/keymap.c | 43 +++++++ .../lazydesigners/cloud/keymaps/vial/rules.mk | 8 ++ .../cloud/keymaps/vial/vial.json | 39 +++++++ keyboards/lazydesigners/cloud/readme.md | 21 ++++ keyboards/lazydesigners/cloud/rules.mk | 19 +++ 14 files changed, 522 insertions(+) create mode 100644 keyboards/lazydesigners/cloud/cloud.c create mode 100644 keyboards/lazydesigners/cloud/cloud.h create mode 100644 keyboards/lazydesigners/cloud/config.h create mode 100644 keyboards/lazydesigners/cloud/info.json create mode 100644 keyboards/lazydesigners/cloud/keymaps/default/keymap.c create mode 100644 keyboards/lazydesigners/cloud/keymaps/ortho/keymap.c create mode 100644 keyboards/lazydesigners/cloud/keymaps/via/keymap.c create mode 100644 keyboards/lazydesigners/cloud/keymaps/via/rules.mk create mode 100644 keyboards/lazydesigners/cloud/keymaps/vial/config.h create mode 100644 keyboards/lazydesigners/cloud/keymaps/vial/keymap.c create mode 100644 keyboards/lazydesigners/cloud/keymaps/vial/rules.mk create mode 100644 keyboards/lazydesigners/cloud/keymaps/vial/vial.json create mode 100644 keyboards/lazydesigners/cloud/readme.md create mode 100644 keyboards/lazydesigners/cloud/rules.mk diff --git a/keyboards/lazydesigners/cloud/cloud.c b/keyboards/lazydesigners/cloud/cloud.c new file mode 100644 index 00000000000..ce0b783360c --- /dev/null +++ b/keyboards/lazydesigners/cloud/cloud.c @@ -0,0 +1,15 @@ +#include "cloud.h" + +//#ifdef ENCODER_ENABLE +//bool encoder_update_kb(uint8_t index, bool clockwise) { +// if (!encoder_update_user(index, clockwise)) { return false; } +// if (index == 0) { +// if (clockwise) { +// tap_code_delay(KC_VOLU, 10); +// } else { +// tap_code_delay(KC_VOLD, 10); +// } +// } +// return true; +//} +//#endif /* ENCODER_ENABLE */ \ No newline at end of file diff --git a/keyboards/lazydesigners/cloud/cloud.h b/keyboards/lazydesigners/cloud/cloud.h new file mode 100644 index 00000000000..7a760270ebd --- /dev/null +++ b/keyboards/lazydesigners/cloud/cloud.h @@ -0,0 +1,49 @@ +/* +Copyright 2020 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_staggered( \ + K012, \ + K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ + K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ + K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \ + K300, K301, K302, K304, K306, K308, K309, K310 \ +) { \ + { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012 }, \ + { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, KC_NO }, \ + { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, KC_NO, KC_NO }, \ + { K300, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310, KC_NO, KC_NO }, \ +} + +#define LAYOUT_ortho( \ + K012, \ + K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ + K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ + K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \ + K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 \ +) { \ + { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012 }, \ + { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, KC_NO }, \ + { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, KC_NO }, \ + { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO } \ +} + + + diff --git a/keyboards/lazydesigners/cloud/config.h b/keyboards/lazydesigners/cloud/config.h new file mode 100644 index 00000000000..7b9c7988be8 --- /dev/null +++ b/keyboards/lazydesigners/cloud/config.h @@ -0,0 +1,61 @@ +/* +Copyright 2020 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 0x0043 +#define DEVICE_VER 0x0001 +#define MANUFACTURER LAZYDESIGNERS +#define PRODUCT Cloud + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 13 + +#define MATRIX_ROW_PINS { F0, F6, D5, F7 } +#define MATRIX_COL_PINS { E6, B2, B3, B7, D4, D6, D7, B4, B5, B6, C6, C7, F1 } + +#define ENCODERS_PAD_A { F4 } +#define ENCODERS_PAD_B { F5 } + +#define DIODE_DIRECTION COL2ROW + +/* RBG underglow */ +#define RGB_DI_PIN D0 +#ifdef RGB_DI_PIN + #define RGBLIGHT_SLEEP + #define RGBLED_NUM 15 + #define RGBLIGHT_HUE_STEP 8 + #define RGBLIGHT_SAT_STEP 8 + #define RGBLIGHT_VAL_STEP 8 + +#define RGBLIGHT_EFFECT_BREATHING +#define RGBLIGHT_EFFECT_RAINBOW_MOOD +#define RGBLIGHT_EFFECT_RAINBOW_SWIRL +#define RGBLIGHT_EFFECT_SNAKE +#define RGBLIGHT_EFFECT_CHRISTMAS +#define RGBLIGHT_EFFECT_STATIC_GRADIENT +#define RGBLIGHT_EFFECT_KNIGHT +#define RGBLIGHT_EFFECT_RGB_TEST +#define RGBLIGHT_EFFECT_ALTERNATING +#define RGBLIGHT_EFFECT_TWINKLE + +#endif diff --git a/keyboards/lazydesigners/cloud/info.json b/keyboards/lazydesigners/cloud/info.json new file mode 100644 index 00000000000..dfab6917829 --- /dev/null +++ b/keyboards/lazydesigners/cloud/info.json @@ -0,0 +1,108 @@ +{ + "keyboard_name": "Cloud", + "url": "http://lazydesigners.cn", + "maintainer": "LAZYDESIGNERS", + "layouts": { + "LAYOUT_staggered": { + "layout": [ + {"label":"K012", "x":0, "y":0}, + {"label":"K000", "x":0, "y":1.25}, + {"label":"K001", "x":1, "y":1.25}, + {"label":"K002", "x":2, "y":1.25}, + {"label":"K003", "x":3, "y":1.25}, + {"label":"K004", "x":4, "y":1.25}, + {"label":"K005", "x":5, "y":1.25}, + {"label":"K006", "x":6, "y":1.25}, + {"label":"K007", "x":7, "y":1.25}, + {"label":"K008", "x":8, "y":1.25}, + {"label":"K009", "x":9, "y":1.25}, + {"label":"K010", "x":10, "y":1.25}, + {"label":"K011", "x":11, "y":1.25, "w":1.5}, + {"label":"K100", "x":0, "y":2.25, "w":1.25}, + {"label":"K101", "x":1.25, "y":2.25}, + {"label":"K102", "x":2.25, "y":2.25}, + {"label":"K103", "x":3.25, "y":2.25}, + {"label":"K104", "x":4.25, "y":2.25}, + {"label":"K105", "x":5.25, "y":2.25}, + {"label":"K106", "x":6.25, "y":2.251}, + {"label":"K107", "x":7.25, "y":2.25}, + {"label":"K108", "x":8.25, "y":2.25}, + {"label":"K109", "x":9.25, "y":2.25}, + {"label":"K110", "x":10.25, "y":2.25}, + {"label":"K111", "x":11.25, "y":2.25, "w":1.25}, + {"label":"K200", "x":0, "y":3.25, "w":1.75}, + {"label":"K201", "x":1.75, "y":3.25}, + {"label":"K202", "x":2.75, "y":3.25}, + {"label":"K203", "x":3.75, "y":3.25}, + {"label":"K204", "x":4.75, "y":3.25}, + {"label":"K205", "x":5.75, "y":3.25}, + {"label":"K206", "x":6.75, "y":3.25}, + {"label":"K207", "x":7.75, "y":3.25}, + {"label":"K208", "x":8.75, "y":3.25}, + {"label":"K209", "x":9.75, "y":3.25}, + {"label":"K210", "x":10.75, "y":3.25,"w":1.75}, + {"label":"K300", "x":0, "y":4.25, "w":1.25}, + {"label":"K301", "x":1.25, "y":4.25, "w":1.25}, + {"label":"K302", "x":2.5, "y":4.25, "w":1.25}, + {"label":"K304", "x":3.75, "y":4.25, "w":2.25}, + {"label":"K306", "x":6, "y":4.25, "w":2.75}, + {"label":"K308", "x":8.75, "y":4.25, "w":1.25}, + {"label":"K309", "x":10, "y":4.25, "w":1.25}, + {"label":"K310", "x":11.25, "y":4.25, "w":1.25} + ] + }, + "LAYOUT_ortho": { + "layout": [ + {"label":"K012", "x":0, "y":0}, + {"label":"K000", "x":0, "y":1.25,"w":1.25}, + {"label":"K001", "x":1.25, "y":1.25}, + {"label":"K002", "x":2.25, "y":1.25}, + {"label":"K003", "x":3.25, "y":1.25}, + {"label":"K004", "x":4.25, "y":1.25}, + {"label":"K005", "x":5.25, "y":1.25}, + {"label":"K006", "x":6.25, "y":1.25}, + {"label":"K007", "x":7.25, "y":1.25}, + {"label":"K008", "x":8.25, "y":1.25}, + {"label":"K009", "x":9.25, "y":1.25}, + {"label":"K010", "x":10.25, "y":1.25}, + {"label":"K011", "x":11.25, "y":1.25, "w":1.25}, + {"label":"K100", "x":0, "y":2.25, "w":1.25}, + {"label":"K101", "x":1.25, "y":2.25}, + {"label":"K102", "x":2.25, "y":2.25}, + {"label":"K103", "x":3.25, "y":2.25}, + {"label":"K104", "x":4.25, "y":2.25}, + {"label":"K105", "x":5.25, "y":2.25}, + {"label":"K106", "x":6.25, "y":2.25}, + {"label":"K107", "x":7.25, "y":2.25}, + {"label":"K108", "x":8.25, "y":2.25}, + {"label":"K109", "x":9.25, "y":2.25}, + {"label":"K110", "x":10.25, "y":2.25}, + {"label":"K111", "x":11.25, "y":2.25, "w":1.25}, + {"label":"K200", "x":0, "y":3.25, "w":1.25}, + {"label":"K201", "x":1.25, "y":3.25}, + {"label":"K202", "x":2.25, "y":3.25}, + {"label":"K203", "x":3.25, "y":3.25}, + {"label":"K204", "x":4.25, "y":3.25}, + {"label":"K205", "x":5.25, "y":3.25}, + {"label":"K206", "x":6.25, "y":3.25}, + {"label":"K207", "x":7.25, "y":3.25}, + {"label":"K208", "x":8.25, "y":3.25}, + {"label":"K209", "x":9.25, "y":3.25}, + {"label":"K210", "x":10.25, "y":3.25}, + {"label":"K211", "x":11.25, "y":3.25, "w":1.25}, + {"label":"K300", "x":0, "y":4.25, "w":1.25}, + {"label":"K301", "x":1.25, "y":4.25}, + {"label":"K302", "x":2.25, "y":4.25}, + {"label":"K303", "x":3.25, "y":4.25}, + {"label":"K304", "x":4.25, "y":4.25}, + {"label":"K305", "x":5.25, "y":4.25}, + {"label":"K306", "x":6.25, "y":4.25}, + {"label":"K307", "x":7.25, "y":4.25}, + {"label":"K308", "x":8.25, "y":4.25}, + {"label":"K309", "x":9.25, "y":4.25}, + {"label":"K310", "x":10.25, "y":4.25}, + {"label":"K311", "x":11.25, "y":4.25,"w":1.25} + ] + } + } +} diff --git a/keyboards/lazydesigners/cloud/keymaps/default/keymap.c b/keyboards/lazydesigners/cloud/keymaps/default/keymap.c new file mode 100644 index 00000000000..6dc82c0e31e --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/default/keymap.c @@ -0,0 +1,43 @@ +/* Copyright 2022 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 LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_staggered( + RGB_TOG, + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_UP, + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LT1_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_staggered( + RGB_MOD, + KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, + KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, + KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT_staggered( + KC_NO, + RESET, 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 + ), +}; diff --git a/keyboards/lazydesigners/cloud/keymaps/ortho/keymap.c b/keyboards/lazydesigners/cloud/keymaps/ortho/keymap.c new file mode 100644 index 00000000000..b58cfececa7 --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/ortho/keymap.c @@ -0,0 +1,52 @@ +/* Copyright 2022 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 LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_staggered( + KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, RGB_TOG, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_UP, MO(2), + KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, KC_SPC, LT1_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_staggered( + RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, RGB_MOD, + KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + 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_TRNS, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT_staggered( + RESET, 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, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), +}; + + +bool encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_VOLD); + } else { + tap_code(KC_VOLU); + } + } + return true; +} \ No newline at end of file diff --git a/keyboards/lazydesigners/cloud/keymaps/via/keymap.c b/keyboards/lazydesigners/cloud/keymaps/via/keymap.c new file mode 100644 index 00000000000..d966d2b04e6 --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/via/keymap.c @@ -0,0 +1,52 @@ +/* Copyright 2022 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 LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_staggered( + RGB_TOG, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, RGB_TOG, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_UP, + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LT1_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_staggered( + RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, RGB_MOD, + KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, + KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT_staggered( + RESET, 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 + ), +}; + + +bool encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_VOLD); + } else { + tap_code(KC_VOLU); + } + } + return true; +} \ No newline at end of file diff --git a/keyboards/lazydesigners/cloud/keymaps/via/rules.mk b/keyboards/lazydesigners/cloud/keymaps/via/rules.mk new file mode 100644 index 00000000000..36b7ba9cbc9 --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes diff --git a/keyboards/lazydesigners/cloud/keymaps/vial/config.h b/keyboards/lazydesigners/cloud/keymaps/vial/config.h new file mode 100644 index 00000000000..1951f017922 --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/vial/config.h @@ -0,0 +1,10 @@ +#define VIAL_KEYBOARD_UID {0x5C, 0x62, 0x97, 0xFD, 0x6A, 0x4C, 0x59, 0x89} + +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 11 } + +#define DYNAMIC_KEYMAP_LAYER_COUNT 4 + +// #define LAYER_STATE_8BIT +// #define VIAL_TAP_DANCE_ENTRIES 4 +// #define VIAL_COMBO_ENTRIES 4 diff --git a/keyboards/lazydesigners/cloud/keymaps/vial/keymap.c b/keyboards/lazydesigners/cloud/keymaps/vial/keymap.c new file mode 100644 index 00000000000..6dc82c0e31e --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/vial/keymap.c @@ -0,0 +1,43 @@ +/* Copyright 2022 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 LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_staggered( + RGB_TOG, + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_UP, + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LT1_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_staggered( + RGB_MOD, + KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, + KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, + KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT_staggered( + KC_NO, + RESET, 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 + ), +}; diff --git a/keyboards/lazydesigners/cloud/keymaps/vial/rules.mk b/keyboards/lazydesigners/cloud/keymaps/vial/rules.mk new file mode 100644 index 00000000000..65380b325ed --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/vial/rules.mk @@ -0,0 +1,8 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes +VIAL_ENABLE = yes +VIAL_ENCODERS_ENABLE = yes +QMK_SETTINGS = no +KEY_OVERRIDE_ENABLE = no +#COMBO_ENABLE = no +#TAP_DANCE_ENABLE = no \ No newline at end of file diff --git a/keyboards/lazydesigners/cloud/keymaps/vial/vial.json b/keyboards/lazydesigners/cloud/keymaps/vial/vial.json new file mode 100644 index 00000000000..4ff5fa39690 --- /dev/null +++ b/keyboards/lazydesigners/cloud/keymaps/vial/vial.json @@ -0,0 +1,39 @@ +{ + "name": "LAZYDESIGERS Cloud", + "vendorId": "0x4C44", + "productId": "0x0043", + "lighting": "qmk_rgblight", + "matrix": {"rows": 4, "cols": 13}, +"layouts": { + "labels": [ + ["Style", "Staggered","Ortho"], + ["Bottom Row", "Split", "7U","HHKB Split", "HHKB 7U","Ortho2X1U","Ortho2U", "Ortho2X2U"] + ], + "keymap": [ + [ + {"x":1},"0,0\n\n\n\n\n\n\n\n\ne","0,12","0,1\n\n\n\n\n\n\n\n\ne" + ], + [ + {"x":1,"y":0.25,"c":"#777777"},"0,0\n\n\n0,0",{"c":"#cccccc"},"0,1\n\n\n0,0","0,2\n\n\n0,0","0,3\n\n\n0,0","0,4\n\n\n0,0","0,5\n\n\n0,0","0,6\n\n\n0,0","0,7\n\n\n0,0","0,8\n\n\n0,0","0,9\n\n\n0,0","0,10\n\n\n0,0",{"c":"#aaaaaa","w":1.5},"0,11\n\n\n0,0", + {"x":1,"c":"#777777","w":1.25},"0,0\n\n\n0,1",{"c":"#cccccc"},"0,1\n\n\n0,1","0,2\n\n\n0,1","0,3\n\n\n0,1","0,4\n\n\n0,1","0,5\n\n\n0,1","0,6\n\n\n0,1","0,7\n\n\n0,1","0,8\n\n\n0,1","0,9\n\n\n0,1","0,10\n\n\n0,1",{"c":"#aaaaaa","w":1.25},"0,11\n\n\n0,1" + ], + [ + {"x":1,"w":1.25},"1,0\n\n\n0,0",{"c":"#cccccc"},"1,1\n\n\n0,0","1,2\n\n\n0,0","1,3\n\n\n0,0","1,4\n\n\n0,0","1,5\n\n\n0,0","1,6\n\n\n0,0","1,7\n\n\n0,0","1,8\n\n\n0,0","1,9\n\n\n0,0","1,10\n\n\n0,0",{"c":"#aaaaaa","w":1.25},"1,11\n\n\n0,0", + {"x":1,"w":1.25},"1,0\n\n\n0,1",{"c":"#cccccc"},"1,1\n\n\n0,1","1,2\n\n\n0,1","1,3\n\n\n0,1","1,4\n\n\n0,1","1,5\n\n\n0,1","1,6\n\n\n0,1","1,7\n\n\n0,1","1,8\n\n\n0,1","1,9\n\n\n0,1","1,10\n\n\n0,1",{"c":"#aaaaaa","w":1.25},"1,11\n\n\n0,1" + ], + [ + {"x":1,"w":1.75},"2,0\n\n\n0,0",{"c":"#cccccc"},"2,1\n\n\n0,0","2,2\n\n\n0,0","2,3\n\n\n0,0","2,4\n\n\n0,0","2,5\n\n\n0,0","2,6\n\n\n0,0","2,7\n\n\n0,0","2,8\n\n\n0,0","2,9\n\n\n0,0",{"c":"#777777","w":1.75},"2,10\n\n\n0,0", + {"x":1,"w":1.25},"2,0\n\n\n0,1",{"c":"#cccccc"},"2,1\n\n\n0,1","2,2\n\n\n0,1","2,3\n\n\n0,1","2,4\n\n\n0,1","2,5\n\n\n0,1","2,6\n\n\n0,1","2,7\n\n\n0,1","2,8\n\n\n0,1","2,9\n\n\n0,1","2,10\n\n\n0,1",{"c":"#777777","w":1.25},"2,11\n\n\n0,1" + ], + [ + {"x":1,"w":1.25,"c":"#aaaaaa"},"3,0\n\n\n1,0",{"w":1.25},"3,1\n\n\n1,0",{"w":1.25},"3,2\n\n\n1,0",{"c":"#777777","w":2.25},"3,4\n\n\n1,0",{"w":2.75},"3,6\n\n\n1,0",{"w":1.25,"c":"#aaaaaa"},"3,8\n\n\n1,0",{"w":1.25},"3,9\n\n\n1,0",{"w":1.25},"3,10\n\n\n1,0", + {"x":1,"w":1.25,"c":"#aaaaaa"},"3,0\n\n\n1,1",{"w":1.5},"3,1\n\n\n1,1",{"c":"#777777","w":7},"3,6\n\n\n1,1",{"w":1.5,"c":"#aaaaaa"},"3,8\n\n\n1,1",{"w":1.25},"3,9\n\n\n1,1", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,2",{"c":"#aaaaaa"},{"w":1.25},"3,1\n\n\n1,2",{"w":1.25},"3,2\n\n\n1,2",{"c":"#777777","w":2.25},"3,4\n\n\n1,2",{"w":2.75},"3,6\n\n\n1,2",{"w":1.25,"c":"#aaaaaa"},"3,8\n\n\n1,2",{"w":1.25},"3,9\n\n\n1,2", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,3",{"c":"#aaaaaa"},{"w":1.5},"3,1\n\n\n1,3",{"c":"#777777","w":7},"3,6\n\n\n1,3",{"w":1.5,"c":"#aaaaaa"},"3,9\n\n\n1,3", + {"x":1,"w":1.25,"c":"#aaaaaa"},"3,0\n\n\n1,4","3,1\n\n\n1,4","3,2\n\n\n1,4","3,3\n\n\n1,4","3,4\n\n\n1,4","3,5\n\n\n1,4","3,6\n\n\n1,4","3,7\n\n\n1,4","3,8\n\n\n1,4","3,9\n\n\n1,4","3,10\n\n\n1,4",{"c":"#777777","w":1.25},"3,11\n\n\n1,4", + {"x":1,"w":1.25,"c":"#aaaaaa"},"3,0\n\n\n1,5","3,1\n\n\n1,5","3,2\n\n\n1,5","3,3\n\n\n1,5","3,4\n\n\n1,5",{"w":2},"3,5\n\n\n1,5","3,7\n\n\n1,5","3,8\n\n\n1,5","3,9\n\n\n1,5","3,10\n\n\n1,5",{"c":"#777777","w":1.25},"3,11\n\n\n1,5", + {"x":1,"w":1.25,"c":"#aaaaaa"},"3,0\n\n\n1,6","3,1\n\n\n1,6","3,2\n\n\n1,6","3,3\n\n\n1,6",{"w":2},"3,4\n\n\n1,6",{"w":2},"3,7\n\n\n1,6","3,8\n\n\n1,6","3,9\n\n\n1,6","3,10\n\n\n1,6",{"c":"#777777","w":1.25},"3,11\n\n\n1,6" + ] + ] + } +} diff --git a/keyboards/lazydesigners/cloud/readme.md b/keyboards/lazydesigners/cloud/readme.md new file mode 100644 index 00000000000..cc3e7f5426e --- /dev/null +++ b/keyboards/lazydesigners/cloud/readme.md @@ -0,0 +1,21 @@ +# Bolt + +![Cloud]() + +A 40% keyboard designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn). + +* Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) +* Hardware Supported: Cloud +* Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn) + +Make example for this keyboard (after setting up your build environment): + + make lazydesigners/cloud:default + +Flashing example for this keyboard: + + make lazydesigners/cloud: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/cloud/rules.mk b/keyboards/lazydesigners/cloud/rules.mk new file mode 100644 index 00000000000..0416822c846 --- /dev/null +++ b/keyboards/lazydesigners/cloud/rules.mk @@ -0,0 +1,19 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = atmel-dfu + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +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 +NKRO_ENABLE = Yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output +ENCODER_ENABLE = yes \ No newline at end of file