Skip to content

Commit

Permalink
Add Cloud vial firmware
Browse files Browse the repository at this point in the history
Add Cloud vial firmware
  • Loading branch information
jackytrabbit authored Jan 3, 2024
1 parent e490537 commit ffe6c3d
Show file tree
Hide file tree
Showing 14 changed files with 522 additions and 0 deletions.
15 changes: 15 additions & 0 deletions keyboards/lazydesigners/cloud/cloud.c
Original file line number Diff line number Diff line change
@@ -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 */
49 changes: 49 additions & 0 deletions keyboards/lazydesigners/cloud/cloud.h
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/

#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 } \
}



61 changes: 61 additions & 0 deletions keyboards/lazydesigners/cloud/config.h
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/

#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
108 changes: 108 additions & 0 deletions keyboards/lazydesigners/cloud/info.json
Original file line number Diff line number Diff line change
@@ -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}
]
}
}
}
43 changes: 43 additions & 0 deletions keyboards/lazydesigners/cloud/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/
#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
),
};
52 changes: 52 additions & 0 deletions keyboards/lazydesigners/cloud/keymaps/ortho/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/
#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;
}
52 changes: 52 additions & 0 deletions keyboards/lazydesigners/cloud/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/
#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;
}
2 changes: 2 additions & 0 deletions keyboards/lazydesigners/cloud/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
Loading

0 comments on commit ffe6c3d

Please sign in to comment.