aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormechlovin <57231893+mechlovin@users.noreply.github.com>2020-05-09 16:38:19 +0700
committerGitHub <noreply@github.com>2020-05-09 02:38:19 -0700
commit4c4009c0fd3e55c2eacde302ef08e56a3ff2ab60 (patch)
tree31c54de4cfaf80972ac203a38f23a8b2465d5b72
parente7860d673b0e671988711a487931f61926dbbd56 (diff)
downloadqmk_firmware-4c4009c0fd3e55c2eacde302ef08e56a3ff2ab60.tar.gz
qmk_firmware-4c4009c0fd3e55c2eacde302ef08e56a3ff2ab60.zip
[Keyboard] add adelais PCB (#8945)
* add adelais PCB * clean up * merger * update * Update readme.md * Update config.h * update * update * move keymap folder * Update info.json * Update info.json * Update info.json Co-authored-by: vuhopkep <boy9x0@gmail.com>
-rw-r--r--keyboards/mechlovin/adelais/adelais.c69
-rw-r--r--keyboards/mechlovin/adelais/adelais.h33
-rw-r--r--keyboards/mechlovin/adelais/config.h46
-rw-r--r--keyboards/mechlovin/adelais/info.json81
-rw-r--r--keyboards/mechlovin/adelais/keymaps/default/keymap.c32
-rw-r--r--keyboards/mechlovin/adelais/keymaps/default/readme.md1
-rw-r--r--keyboards/mechlovin/adelais/keymaps/via/keymap.c44
-rw-r--r--keyboards/mechlovin/adelais/keymaps/via/readme.md1
-rw-r--r--keyboards/mechlovin/adelais/keymaps/via/rules.mk1
-rw-r--r--keyboards/mechlovin/adelais/readme.md18
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/config.h16
-rw-r--r--keyboards/mechlovin/adelais/rgb_led/rules.mk1
-rw-r--r--keyboards/mechlovin/adelais/rules.mk23
-rw-r--r--keyboards/mechlovin/adelais/standard_led/config.h15
-rw-r--r--keyboards/mechlovin/adelais/standard_led/rules.mk3
15 files changed, 384 insertions, 0 deletions
diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c
new file mode 100644
index 000000000..c4676007e
--- /dev/null
+++ b/keyboards/mechlovin/adelais/adelais.c
@@ -0,0 +1,69 @@
1/* Copyright 2020 Team Mechlovin'
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 "adelais.h"
18
19#ifdef RGB_MATRIX_ENABLE
20led_config_t g_led_config = { {
21 //Key Matrix to LED Index
22 {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16},
23 {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 0},
24 {33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, NO_LED, 45, 17},
25 {46, NO_LED, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 60, 32},
26 {61, NO_LED, 62, NO_LED, 63, NO_LED, 64, NO_LED, 65, NO_LED, 66, NO_LED, NO_LED, 57, 67}
27}, {
28 //LED Index to Physical Positon
29 {0,0}, { 17, 0}, { 34, 0 }, { 51, 0 }, { 69, 0}, { 86, 0}, {100, 0}, {103, 0}, { 120, 0}, { 138, 0}, { 155, 0}, { 172, 0}, { 189, 0}, {207, 0}, {215, 0}, {223, 0}, {224, 0},
30 {0,16}, { 17, 16}, { 34,16 }, { 51,16 }, { 69,16}, { 86,16}, {103,16}, { 120,16}, { 138,16}, { 155,16}, { 172,16}, { 189,16}, {207, 16}, {215, 16}, {224,16},
31 {0,32}, { 17, 32}, { 34,32 }, { 51,32 }, { 69,32}, { 86,32}, {103,32}, { 120,32}, { 138,32}, { 155,32}, { 172,32}, { 189,32}, {207, 32}, {224,32},
32 { 17, 48}, { 34,48 }, { 51,48 }, { 69,48}, { 86,48}, {103,48}, { 120,48}, { 138,48}, { 155,48}, { 172,48}, { 189,48}, {207, 48}, {215, 48}, {224,48}, {224,48},
33 { 17, 64}, { 51,64 }, { 86,64}, { 103,64}, { 138,64}, { 172,64}, {224, 64},
34 {100,0}, { 69,0}, { 24, 0}, { 0,3}, { 0,16}, { 0,32}, { 0,51}, { 15,64 }, { 34,64}, { 69,64}, { 103,64}, {110,64}, { 120,64}, { 155,64}, { 189,64}, { 192,64}, { 224,58}, { 224,32}, { 224,16}, { 224,0}, { 207,0}, { 172,0}, { 138,0},
35}, {
36 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
37 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
38 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
39 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
40 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
41} };
42#endif
43
44void matrix_init_kb(void) {
45 // put your keyboard start-up code here
46 // runs once when the firmware starts up
47
48 matrix_init_user();
49 led_init_ports();
50}
51
52void led_init_ports(void) {
53 setPinOutput(B2);
54 writePinLow(B2);
55 setPinOutput(C15);
56 writePinLow(C15);
57 setPinOutput(B9);
58 writePinLow(B9);
59}
60
61bool led_update_kb(led_t led_state) {
62 if(led_update_user(led_state)) {
63 writePin(B2, led_state.caps_lock);
64 writePin(B9, led_state.scroll_lock);
65 writePin(C12, led_state.num_lock);
66 }
67
68 return true;
69}
diff --git a/keyboards/mechlovin/adelais/adelais.h b/keyboards/mechlovin/adelais/adelais.h
new file mode 100644
index 000000000..d28502da2
--- /dev/null
+++ b/keyboards/mechlovin/adelais/adelais.h
@@ -0,0 +1,33 @@
1/* Copyright 2020 Team Mechlovin
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#define LAYOUT_all( \
22 K1E, K00, K01, K02, K03, K04, K05, K06, K07,K08,K09, K0A, K0B, K0C, K0D, K0E,\
23 K2E, K10, K11, K12, K13, K14, K15, K16,K17,K18, K19, K1A, K1B, K1C, K1D,\
24 K3E, K20, K21, K22, K23, K24, K25, K26,K27,K28, K29, K2A, K2B, K2D,\
25 K30, K32, K33, K34, K35, K36, K37,K38,K39, K3A, K3B, K3D, K3C, K4D,\
26 K40, K42, K44, K46, K48, K4A, K4E \
27) { \
28 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
29 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
30 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, K2E }, \
31 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
32 { K40, KC_NO, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, KC_NO, KC_NO, K4D, K4E }, \
33}
diff --git a/keyboards/mechlovin/adelais/config.h b/keyboards/mechlovin/adelais/config.h
new file mode 100644
index 000000000..9ec688aef
--- /dev/null
+++ b/keyboards/mechlovin/adelais/config.h
@@ -0,0 +1,46 @@
1/*
2Copyright 2020 Team Mechlovin
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x4D4C // "ML"
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Team.Mechlovin
26
27/* key matrix size */
28#define MATRIX_ROWS 5
29#define MATRIX_COLS 15
30
31/*
32 * Keyboard Matrix Assignments
33 *
34 * Change this to how you wired your keyboard
35 * COLS: AVR pins used for columns, left to right
36 * ROWS: AVR pins used for rows, top to bottom
37 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
38 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
39 *
40 */
41#define MATRIX_ROW_PINS { B1, A0, C13, A1, A2}
42#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 }
43#define UNUSED_PINS
44
45/* COL2ROW, ROW2COL*/
46#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/mechlovin/adelais/info.json b/keyboards/mechlovin/adelais/info.json
new file mode 100644
index 000000000..4babd9078
--- /dev/null
+++ b/keyboards/mechlovin/adelais/info.json
@@ -0,0 +1,81 @@
1{
2 "keyboard_name": "Adelais",
3 "url": "",
4 "maintainer": "Team Mechlovin'",
5 "width": 18.5,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_all": {
9 "key_count": 66,
10 "layout": [
11 {"label":"K1E", "x":0, "y":0},
12 {"label":"K00", "x":1.5, "y":0},
13 {"label":"K01", "x":2.5, "y":0},
14 {"label":"K02", "x":3.5, "y":0},
15 {"label":"K03", "x":4.5, "y":0},
16 {"label":"K04", "x":5.5, "y":0},
17 {"label":"K05", "x":6.5, "y":0},
18 {"label":"K06", "x":7.5, "y":0},
19 {"label":"K07", "x":10.5, "y":0},
20 {"label":"K08", "x":11.5, "y":0},
21 {"label":"K09", "x":12.5, "y":0},
22 {"label":"K0A", "x":13.5, "y":0},
23 {"label":"K0B", "x":14.5, "y":0},
24 {"label":"K0C", "x":15.5, "y":0},
25 {"label":"K0D", "x":16.5, "y":0},
26 {"label":"K0E", "x":17.5, "y":0},
27 {"label":"K2E", "x":0, "y":1},
28 {"label":"K10", "x":1.5, "y":1, "w":1.5},
29 {"label":"K11", "x":3, "y":1},
30 {"label":"K12", "x":4, "y":1},
31 {"label":"K13", "x":5, "y":1},
32 {"label":"K14", "x":6, "y":1},
33 {"label":"K15", "x":7, "y":1},
34 {"label":"K16", "x":10, "y":1},
35 {"label":"K17", "x":11, "y":1},
36 {"label":"K18", "x":12, "y":1},
37 {"label":"K19", "x":13, "y":1},
38 {"label":"K1A", "x":14, "y":1},
39 {"label":"K1B", "x":15, "y":1},
40 {"label":"K1C", "x":16, "y":1},
41 {"label":"K1D", "x":17, "y":1, "w":1.5},
42 {"label":"K3E", "x":0, "y":2},
43 {"label":"K20", "x":1.5, "y":2, "w":1.75},
44 {"label":"K21", "x":3.25, "y":2},
45 {"label":"K22", "x":4.25, "y":2},
46 {"label":"K23", "x":5.25, "y":2},
47 {"label":"K24", "x":6.25, "y":2},
48 {"label":"K25", "x":7.25, "y":2},
49 {"label":"K26", "x":10.25, "y":2},
50 {"label":"K27", "x":11.25, "y":2},
51 {"label":"K28", "x":12.25, "y":2},
52 {"label":"K29", "x":13.25, "y":2},
53 {"label":"K2A", "x":14.25, "y":2},
54 {"label":"K2B", "x":15.25, "y":2},
55 {"label":"K2D", "x":16.25, "y":2, "w":2.25},
56 {"label":"K30", "x":1.5, "y":3, "w":2.25},
57 {"label":"K32", "x":3.75, "y":3},
58 {"label":"K33", "x":4.75, "y":3},
59 {"label":"K34", "x":5.75, "y":3},
60 {"label":"K35", "x":6.75, "y":3},
61 {"label":"K36", "x":7.75, "y":3},
62 {"label":"K37", "x":9.75, "y":3},
63 {"label":"K38", "x":10.75, "y":3},
64 {"label":"K39", "x":11.75, "y":3},
65 {"label":"K3A", "x":12.75, "y":3},
66 {"label":"K3B", "x":13.75, "y":3},
67 {"label":"K4D", "x":14.75, "y":3},
68 {"label":"K3C", "x":15.75, "y":3, "w":1.75},
69 {"label":"K3D", "x":17.5, "y":3},
70 {"label":"K40", "x":1.5, "y":4, "w":1.5},
71 {"label":"K42", "x":4.5, "y":4, "w":1.25},
72 {"label":"K44", "x":5.75, "y":4, "w":2.25},
73 {"label":"K46", "x":8, "y":4, "w":1.25},
74 {"label":"K48", "x":9.75, "y":4, "w":2.75},
75 {"label":"K4A", "x":12.5, "y":4, "w":1.25},
76 {"label":"K4E", "x":17, "y":4, "w":1.5}
77 ]
78 }
79 }
80 ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
81}
diff --git a/keyboards/mechlovin/adelais/keymaps/default/keymap.c b/keyboards/mechlovin/adelais/keymaps/default/keymap.c
new file mode 100644
index 000000000..7848a5709
--- /dev/null
+++ b/keyboards/mechlovin/adelais/keymaps/default/keymap.c
@@ -0,0 +1,32 @@
1/* Copyright 2020 Team Mechlovin
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#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_all(
20 KC_SPC, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
21 KC_SPC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_SLSH,
22 KC_SPC, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_BSLS, MO(1), KC_RSFT, KC_UP,
24 KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_SPC, KC_RALT, KC_RCTL ),
25 [0] = LAYOUT_all(
26 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
31
32}; \ No newline at end of file
diff --git a/keyboards/mechlovin/adelais/keymaps/default/readme.md b/keyboards/mechlovin/adelais/keymaps/default/readme.md
new file mode 100644
index 000000000..54d78d873
--- /dev/null
+++ b/keyboards/mechlovin/adelais/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for adelais
diff --git a/keyboards/mechlovin/adelais/keymaps/via/keymap.c b/keyboards/mechlovin/adelais/keymaps/via/keymap.c
new file mode 100644
index 000000000..03636d02b
--- /dev/null
+++ b/keyboards/mechlovin/adelais/keymaps/via/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2020 Team Mechlovin
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#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_all(
20 KC_SPC, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
21 KC_SPC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_SLSH,
22 KC_SPC, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_BSLS, MO(1), KC_RSFT, KC_UP,
24 KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_SPC, KC_RALT, KC_RCTL ),
25 [1] = LAYOUT_all(
26 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
31 [2] = LAYOUT_all(
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
37 [3] = LAYOUT_all(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
43
44}; \ No newline at end of file
diff --git a/keyboards/mechlovin/adelais/keymaps/via/readme.md b/keyboards/mechlovin/adelais/keymaps/via/readme.md
new file mode 100644
index 000000000..a85ba709d
--- /dev/null
+++ b/keyboards/mechlovin/adelais/keymaps/via/readme.md
@@ -0,0 +1 @@
# The VIA keymap for adelais
diff --git a/keyboards/mechlovin/adelais/keymaps/via/rules.mk b/keyboards/mechlovin/adelais/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/mechlovin/adelais/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/mechlovin/adelais/readme.md b/keyboards/mechlovin/adelais/readme.md
new file mode 100644
index 000000000..947d5a31d
--- /dev/null
+++ b/keyboards/mechlovin/adelais/readme.md
@@ -0,0 +1,18 @@
1# Adelais / Adelais En Ciel
2
3![adelais](https://i.imgur.com/6U1IfZe.png)
4
5Compatible with TGR Alice and all clone variants.
6`standard_led` (Adelais) comes with backlight and RGB underglow LEDs pre-soldered.
7`rgb_led` (Adelais En Ciel) comes with per-key RGB LEDs pre-soldered.
8
9* Keyboard Maintainer: [Team Mechlovin'](https://github.com/mechlovin)
10* Hardware Supported: Adelais, Adelais En Ciel
11* Hardware Availability: [Reddit GB](https://www.reddit.com/r/mechmarket/comments/fr7smq/gb_team_mechlovin_adelais_tgr_alice_clones/)
12
13Make example for this keyboard (after setting up your build environment):
14
15 make mechlovin/adelais/standard_led:default
16 make mechlovin/adelais/rgb_led:default
17
18See 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/mechlovin/adelais/rgb_led/config.h b/keyboards/mechlovin/adelais/rgb_led/config.h
new file mode 100644
index 000000000..860bcee7c
--- /dev/null
+++ b/keyboards/mechlovin/adelais/rgb_led/config.h
@@ -0,0 +1,16 @@
1#pragma once
2
3#define PRODUCT_ID 0xAEC1
4#define PRODUCT Adelais En Ciel
5#define DESCRIPTION Team.Mechlovin Adelais En Ciel
6
7#define RGB_DI_PIN A7
8#define DRIVER_LED_TOTAL 91
9#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
10#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
11#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
12#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
13#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
14#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
15#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
16#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set \ No newline at end of file
diff --git a/keyboards/mechlovin/adelais/rgb_led/rules.mk b/keyboards/mechlovin/adelais/rgb_led/rules.mk
new file mode 100644
index 000000000..20256e208
--- /dev/null
+++ b/keyboards/mechlovin/adelais/rgb_led/rules.mk
@@ -0,0 +1 @@
RGB_MATRIX_ENABLE = WS2812
diff --git a/keyboards/mechlovin/adelais/rules.mk b/keyboards/mechlovin/adelais/rules.mk
new file mode 100644
index 000000000..4681ac316
--- /dev/null
+++ b/keyboards/mechlovin/adelais/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = STM32F303
3
4
5# Build Options
6# change yes to no to disable
7#
8BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
9MOUSEKEY_ENABLE = yes # Mouse keys
10EXTRAKEY_ENABLE = yes # Audio control and System control
11CONSOLE_ENABLE = no # Console for debug
12COMMAND_ENABLE = no # Commands for debug and configuration
13# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
14SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
15# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
16NKRO_ENABLE = no # USB Nkey Rollover
17MIDI_ENABLE = no # MIDI support
18BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
19AUDIO_ENABLE = no # Audio output on port C6
20FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
21HD44780_ENABLE = no # Enable support for HD44780 based LCDs
22
23DEFAULT_FOLDER = mechlovin/adelais/standard_led \ No newline at end of file
diff --git a/keyboards/mechlovin/adelais/standard_led/config.h b/keyboards/mechlovin/adelais/standard_led/config.h
new file mode 100644
index 000000000..0de6cc6b4
--- /dev/null
+++ b/keyboards/mechlovin/adelais/standard_led/config.h
@@ -0,0 +1,15 @@
1#pragma once
2
3#define PRODUCT_ID 0xAD01
4#define PRODUCT Adelais
5#define DESCRIPTION Team.Mechlovin Adelais
6
7#define BACKLIGHT_PIN B0
8#define BACKLIGHT_BREATHING
9#define BACKLIGHT_PWM_DRIVER PWMD3
10#define BACKLIGHT_PWM_CHANNEL 3
11
12#define RGB_DI_PIN A7
13#define RGBLED_NUM 23
14#define RGBLIGHT_LIMIT_VAL 255
15#define RGBLIGHT_ANIMATIONS
diff --git a/keyboards/mechlovin/adelais/standard_led/rules.mk b/keyboards/mechlovin/adelais/standard_led/rules.mk
new file mode 100644
index 000000000..4ddc35240
--- /dev/null
+++ b/keyboards/mechlovin/adelais/standard_led/rules.mk
@@ -0,0 +1,3 @@
1BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
2BACKLIGHT_DRIVER = pwm
3RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow \ No newline at end of file