From ae0d690ea406972872b927c62514152e9b324b07 Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Mon, 27 Apr 2020 14:21:47 +0700 Subject: [PATCH 1/3] add adelais en ciel Alice compatible RGB PCB --- .../adelais_en_ciel/adelais_en_ciel.c | 66 +++++++++++++++ .../adelais_en_ciel/adelais_en_ciel.h | 33 ++++++++ keyboards/mechlovin/adelais_en_ciel/config.h | 61 ++++++++++++++ keyboards/mechlovin/adelais_en_ciel/info.json | 81 +++++++++++++++++++ .../adelais_en_ciel/keymaps/default/keymap.c | 26 ++++++ .../adelais_en_ciel/keymaps/default/readme.md | 1 + .../adelais_en_ciel/keymaps/via/keymap.c | 32 ++++++++ .../adelais_en_ciel/keymaps/via/readme.md | 1 + .../adelais_en_ciel/keymaps/via/rules.mk | 1 + keyboards/mechlovin/adelais_en_ciel/readme.md | 15 ++++ keyboards/mechlovin/adelais_en_ciel/rules.mk | 34 ++++++++ 11 files changed, 351 insertions(+) create mode 100644 keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c create mode 100644 keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.h create mode 100644 keyboards/mechlovin/adelais_en_ciel/config.h create mode 100644 keyboards/mechlovin/adelais_en_ciel/info.json create mode 100644 keyboards/mechlovin/adelais_en_ciel/keymaps/default/keymap.c create mode 100644 keyboards/mechlovin/adelais_en_ciel/keymaps/default/readme.md create mode 100644 keyboards/mechlovin/adelais_en_ciel/keymaps/via/keymap.c create mode 100644 keyboards/mechlovin/adelais_en_ciel/keymaps/via/readme.md create mode 100644 keyboards/mechlovin/adelais_en_ciel/keymaps/via/rules.mk create mode 100644 keyboards/mechlovin/adelais_en_ciel/readme.md create mode 100644 keyboards/mechlovin/adelais_en_ciel/rules.mk diff --git a/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c new file mode 100644 index 000000000000..aa6952a5eccc --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c @@ -0,0 +1,66 @@ +/* Copyright 2020 Team Mechlovin' + * + * 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 "adelais_en_ciel.h" +led_config_t g_led_config = { { + //Key Matrix to LED Index + {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16}, + {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 0}, + {33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, NO_LED, 45, 17}, + {46, NO_LED, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 60, 32}, + {61, NO_LED, 62, NO_LED, 63, NO_LED, 64, NO_LED, 65, NO_LED, 66, NO_LED, NO_LED, 57, 67} +}, { + //LED Index to Physical Positon + {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}, + {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}, + {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}, + { 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}, + { 17, 64}, { 51,64 }, { 86,64}, { 103,64}, { 138,64}, { 172,64}, {224, 64}, + {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}, +}, { + 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, 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, 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, +} }; + +void matrix_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + + matrix_init_user(); + led_init_ports(); +} + +void led_init_ports(void) { + setPinOutput(B2); + writePinLow(B2); + setPinOutput(C15); + writePinLow(C15); + setPinOutput(B9); + writePinLow(B9); +} + +bool led_update_kb(led_t led_state) { + if(led_update_user(led_state)) { + writePin(B2, led_state.caps_lock); + writePin(B9, led_state.scroll_lock); + writePin(C12, led_state.num_lock); + } + + return true; +} diff --git a/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.h b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.h new file mode 100644 index 000000000000..1083277a1472 --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.h @@ -0,0 +1,33 @@ +/* Copyright 2020 Team Mechlovin' + * + * 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_all( \ + K1E, K00, K01, K02, K03, K04, K05, K06, K07,K08,K09, K0A, K0B, K0C, K0D, K0E,\ + K2E, K10, K11, K12, K13, K14, K15, K16,K17,K18, K19, K1A, K1B, K1C, K1D,\ + K3E, K20, K21, K22, K23, K24, K25, K26,K27,K28, K29, K2A, K2B, K2D,\ + K30, K32, K33, K34, K35, K36, K37,K38,K39, K3A, K3B, K3D, K3C, K4D,\ + K40, K42, K44, K46, K48, K4A, K4E \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, K2E }, \ + { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ + { K40, KC_NO, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, KC_NO, KC_NO, K4D, K4E }, \ +} diff --git a/keyboards/mechlovin/adelais_en_ciel/config.h b/keyboards/mechlovin/adelais_en_ciel/config.h new file mode 100644 index 000000000000..f1372fd2b9de --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/config.h @@ -0,0 +1,61 @@ +/* +Copyright 2020 Team Mechlovin' + +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 0x4D4C // ML-Mechlovin +#define PRODUCT_ID 0xAEC1 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Team.Mechlovin +#define PRODUCT Adelais En Ciel +#define DESCRIPTION Team.Mechlovin Adelais En Ciel + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 15 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * + */ +#define MATRIX_ROW_PINS { B1, A0, C13, A1, A2} +#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION COL2ROW + + +#define RGB_DI_PIN A7 +#define DRIVER_LED_TOTAL 91 +#define RGB_MATRIX_KEYPRESSES // reacts to keypresses +#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS +#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects +#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended +#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) +#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 +#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_en_ciel/info.json b/keyboards/mechlovin/adelais_en_ciel/info.json new file mode 100644 index 000000000000..81fdb897dc2b --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/info.json @@ -0,0 +1,81 @@ +{ "keyboard_name": "Adelais_En_Ciel", + "url": "", + "maintainer": "Team Mechlovin", + "width": 18, + "height": 6, + "layouts": { + "LAYOUT": { + "key_count": 66, + "layout": [ + {"label":"K1E (B1,D4)", "x":0.5, "y":0.89}, + {"label":"K02 (B0,C0)", "x":3.75, "y":0.89}, + {"label":"K03 (B0,C1)", "x":5.1, "y":0}, + {"label":"K04 (B0,C2)", "x":6.1, "y":0}, + {"label":"K05 (B0,C3)", "x":7.1, "y":0}, + {"label":"K06 (B0,C4)", "x":8.1, "y":0}, + {"label":"K2E (B2,D4)", "x":0.25, "y":1.8900000000000001}, + {"label":"K00 (B0,B6)", "x":1.75, "y":1}, + {"label":"K01 (B0,B7)", "x":2.75, "y":1}, + {"label":"K12 (B1,C0)", "x":4.55, "y":1}, + {"label":"K13 (B1,C1)", "x":5.55, "y":1}, + {"label":"K14 (B1,C2)", "x":6.55, "y":1}, + {"label":"K15 (B1,C3)", "x":7.55, "y":1}, + {"label":"K0B (B0,D1)", "x":13.2, "y":1.1}, + {"label":"K0C (B0,D2)", "x":14.2, "y":1.25}, + {"label":"K0D (B0,D3)", "x":15.2, "y":1.25}, + {"label":"K0E (B0,D4)", "x":16.2, "y":1.25}, + {"label":"K3E (B3,D4)", "x":0, "y":2.89}, + {"label":"K10 (B1,B6)", "x":1.5, "y":2, "w":1.5}, + {"label":"K11 (B1,B7)", "x":3, "y":2}, + {"label":"K22 (B2,C0)", "x":4.75, "y":2}, + {"label":"K23 (B2,C1)", "x":5.75, "y":2}, + {"label":"K24 (B2,C2)", "x":6.75, "y":2}, + {"label":"K25 (B2,C3)", "x":7.75, "y":2}, + {"label":"K1A (B1,D0)", "x":12.95, "y":2.1}, + {"label":"K1B (B1,D1)", "x":13.95, "y":2.25}, + {"label":"K1C (B1,D2)", "x":14.95, "y":2.25}, + {"label":"K1D (B1,D3)", "x":15.95, "y":2.25, "w":1.5}, + {"label":"K20 (B2,B6)", "x":1.25, "y":3, "w":1.75}, + {"label":"K21 (B2,B7)", "x":3, "y":3}, + {"label":"K33 (B3,C1)", "x":5.22, "y":3}, + {"label":"K34 (B3,C2)", "x":6.22, "y":3}, + {"label":"K35 (B3,C3)", "x":7.22, "y":3}, + {"label":"K36 (B3,C4)", "x":8.219999999999999, "y":3}, + {"label":"K07 (B0,C5)", "x":8.5, "y":3.7499999999999996}, + {"label":"K08 (B0,C6)", "x":9.5, "y":3.7499999999999996}, + {"label":"K09 (B0,C7)", "x":10.5, "y":3.7499999999999996}, + {"label":"K0A (B0,D0)", "x":11.5, "y":3.7499999999999996}, + {"label":"K2A (B2,D0)", "x":13.4, "y":3.25}, + {"label":"K2B (B2,D1)", "x":14.4, "y":3.25}, + {"label":"K2D (B2,D3)", "x":15.4, "y":3.25, "w":2.25}, + {"label":"K30 (B3,B6)", "x":1, "y":4, "w":2.25}, + {"label":"K32 (B3,C0)", "x":3.25, "y":4}, + {"label":"K42 (B4,C0)", "x":5, "y":4.1, "w":1.5}, + {"label":"K44 (B4,C2)", "x":6.5, "y":4, "w":2}, + {"label":"K16 (B1,C4)", "x":8, "y":4.75}, + {"label":"K46 (B4,C4)", "x":8.5, "y":4, "w":1.25}, + {"label":"K17 (B1,C5)", "x":9, "y":4.75}, + {"label":"K18 (B1,C6)", "x":10, "y":4.75}, + {"label":"K19 (B1,C7)", "x":11, "y":4.75}, + {"label":"K3B (B3,D1)", "x":13.25, "y":4.25}, + {"label":"K3D (B3,D3)", "x":14.25, "y":4.25}, + {"label":"K3C (B3,D2)", "x":15.25, "y":4.25, "w":1.75}, + {"label":"K4D (B4,D3)", "x":17, "y":4.25}, + {"label":"K40 (B4,B6)", "x":1, "y":5, "w":1.5}, + {"label":"K26 (B2,C4)", "x":8.25, "y":5.75}, + {"label":"K27 (B2,C5)", "x":9.25, "y":5.75}, + {"label":"K28 (B2,C6)", "x":10.25, "y":5.75}, + {"label":"K29 (B2,C7)", "x":11.25, "y":5.75}, + {"label":"K4E (B4,D4)", "x":16, "y":5.25, "w":1.5}, + {"label":"K37 (B3,C5)", "x":7.75, "y":6.75}, + {"label":"K38 (B3,C6)", "x":8.75, "y":6.75}, + {"label":"K39 (B3,C7)", "x":9.75, "y":6.75}, + {"label":"K3A (B3,D0)", "x":10.75, "y":6.75}, + {"label":"K48 (B4,C6)", "x":7.75, "y":7.75, "w":2.75}, + {"label":"K4A (B4,D0)", "x":10.5, "y":7.9, "w":1.5} + ] + } + } + ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/" + } + \ No newline at end of file diff --git a/keyboards/mechlovin/adelais_en_ciel/keymaps/default/keymap.c b/keyboards/mechlovin/adelais_en_ciel/keymaps/default/keymap.c new file mode 100644 index 000000000000..5eb2467891b3 --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/keymaps/default/keymap.c @@ -0,0 +1,26 @@ +/* Copyright 2020 Team Mechlovin' + * + * 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 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_all( + 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, + 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, + 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, + 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, + KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_SPC, KC_RALT, KC_RCTL ), + +}; \ No newline at end of file diff --git a/keyboards/mechlovin/adelais_en_ciel/keymaps/default/readme.md b/keyboards/mechlovin/adelais_en_ciel/keymaps/default/readme.md new file mode 100644 index 000000000000..3343fbd5ac6d --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/keymaps/default/readme.md @@ -0,0 +1 @@ +# The default keymap for adelais_en_ciel diff --git a/keyboards/mechlovin/adelais_en_ciel/keymaps/via/keymap.c b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/keymap.c new file mode 100644 index 000000000000..df5fe8c790f1 --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/keymap.c @@ -0,0 +1,32 @@ +/* Copyright 2020 Team Mechlovin' + * + * 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 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_all( + 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, + 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, + 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, + 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, + KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_SPC, KC_RALT, KC_RCTL ), + [0] = LAYOUT_all( + 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, + 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, 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, 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, KC_TRNS, KC_TRNS ), + +}; \ No newline at end of file diff --git a/keyboards/mechlovin/adelais_en_ciel/keymaps/via/readme.md b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/readme.md new file mode 100644 index 000000000000..70d366bb8855 --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/readme.md @@ -0,0 +1 @@ +# The VIA keymap for adelais_en_ciel diff --git a/keyboards/mechlovin/adelais_en_ciel/keymaps/via/rules.mk b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/rules.mk new file mode 100644 index 000000000000..036bd6d1c3ec --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes \ No newline at end of file diff --git a/keyboards/mechlovin/adelais_en_ciel/readme.md b/keyboards/mechlovin/adelais_en_ciel/readme.md new file mode 100644 index 000000000000..237826015699 --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/readme.md @@ -0,0 +1,15 @@ +# adelais_en_ciel + +![adelais_en_ciel](https://i.imgur.com/uys2wui.jpg) + +compatible with TGR Alice and all clone variants. Comes with RGB underglow AND RGB switch blacklight LEDs pre-soldered. + +* Keyboard Maintainer: [Team Mechlovin'](https://github.com/mechlovin) +* Hardware Supported: Adelais en ciel +* Hardware Availability: [Reddit GB](https://www.reddit.com/r/mechmarket/comments/fr7smq/gb_team_mechlovin_adelais_tgr_alice_clones/) + +Make example for this keyboard (after setting up your build environment): + + make adelais_en_ciel:default + +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/mechlovin/adelais_en_ciel/rules.mk b/keyboards/mechlovin/adelais_en_ciel/rules.mk new file mode 100644 index 000000000000..c41c7bd59dda --- /dev/null +++ b/keyboards/mechlovin/adelais_en_ciel/rules.mk @@ -0,0 +1,34 @@ +# MCU name +MCU = STM32F303 + + +# If you don't know the bootloader type, then you can specify the +# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line +# Otherwise, delete this section +# Teensy halfKay 512 +# Teensy++ halfKay 1024 +# Atmel DFU loader 4096 +# LUFA bootloader 4096 +# USBaspLoader 2048 +# OPT_DEFS += -DBOOTLOADER_SIZE=4096 + +# 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 = no # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # 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 +RGB_MATRIX_ENABLE = WS2812 From c5a61ec55c8cf215ce33a2e9cf8f8a4d5f7d6c88 Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Wed, 29 Apr 2020 17:45:07 +0700 Subject: [PATCH 2/3] clean up --- keyboards/mechlovin/adelais_en_ciel/rules.mk | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/keyboards/mechlovin/adelais_en_ciel/rules.mk b/keyboards/mechlovin/adelais_en_ciel/rules.mk index c41c7bd59dda..3a017555c086 100644 --- a/keyboards/mechlovin/adelais_en_ciel/rules.mk +++ b/keyboards/mechlovin/adelais_en_ciel/rules.mk @@ -1,17 +1,6 @@ # MCU name MCU = STM32F303 - -# If you don't know the bootloader type, then you can specify the -# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line -# Otherwise, delete this section -# Teensy halfKay 512 -# Teensy++ halfKay 1024 -# Atmel DFU loader 4096 -# LUFA bootloader 4096 -# USBaspLoader 2048 -# OPT_DEFS += -DBOOTLOADER_SIZE=4096 - # Build Options # change yes to no to disable # From fd731648a53b545502e1cb8bbf8dd24923329a3e Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Thu, 30 Apr 2020 00:32:13 +0700 Subject: [PATCH 3/3] Update adelais_en_ciel.c --- keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c index aa6952a5eccc..939eeb24891a 100644 --- a/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c +++ b/keyboards/mechlovin/adelais_en_ciel/adelais_en_ciel.c @@ -15,6 +15,8 @@ */ #include "adelais_en_ciel.h" + +#ifdef RGB_MATRIX_ENABLE led_config_t g_led_config = { { //Key Matrix to LED Index {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16}, @@ -37,6 +39,7 @@ led_config_t g_led_config = { { 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, } }; +#endif void matrix_init_kb(void) { // put your keyboard start-up code here