aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNightlyBoards <65656486+NightlyBoards@users.noreply.github.com>2021-03-15 05:51:21 +0800
committerGitHub <noreply@github.com>2021-03-14 14:51:21 -0700
commit9e1d04fea77c4da64248e7870b915939a768c5c0 (patch)
tree75f2c9db45625257887727562c9010dccf3ebbab
parentb44bffe954dca574bf6ef16b8c8d985e9547d3e1 (diff)
downloadqmk_firmware-9e1d04fea77c4da64248e7870b915939a768c5c0.tar.gz
qmk_firmware-9e1d04fea77c4da64248e7870b915939a768c5c0.zip
[Keyboard] Added Adellein Keyboard/PCB (#11547)
-rw-r--r--keyboards/nightly_boards/adellein/adellein.c27
-rw-r--r--keyboards/nightly_boards/adellein/adellein.h55
-rw-r--r--keyboards/nightly_boards/adellein/config.h78
-rw-r--r--keyboards/nightly_boards/adellein/encoder_action.c51
-rw-r--r--keyboards/nightly_boards/adellein/encoder_action.h21
-rw-r--r--keyboards/nightly_boards/adellein/info.json118
-rw-r--r--keyboards/nightly_boards/adellein/keymaps/default/keymap.c26
-rw-r--r--keyboards/nightly_boards/adellein/keymaps/via/keymap.c49
-rw-r--r--keyboards/nightly_boards/adellein/keymaps/via/rules.mk2
-rw-r--r--keyboards/nightly_boards/adellein/readme.md20
-rw-r--r--keyboards/nightly_boards/adellein/rules.mk26
11 files changed, 473 insertions, 0 deletions
diff --git a/keyboards/nightly_boards/adellein/adellein.c b/keyboards/nightly_boards/adellein/adellein.c
new file mode 100644
index 000000000..eb9771662
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/adellein.c
@@ -0,0 +1,27 @@
1/* Copyright 2020 Neil Brian Ramirez
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 "adellein.h"
18
19void matrix_scan_kb(void) {
20 encoder_action_unregister();
21 matrix_scan_user();
22}
23
24void encoder_update_kb(uint8_t index, bool clockwise) {
25 encoder_action_register(index, clockwise);
26 // encoder_update_user(index, clockwise);
27}; \ No newline at end of file
diff --git a/keyboards/nightly_boards/adellein/adellein.h b/keyboards/nightly_boards/adellein/adellein.h
new file mode 100644
index 000000000..c78b76fba
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/adellein.h
@@ -0,0 +1,55 @@
1/* Copyright 2020 Neil Brian Ramirez
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#include "encoder_action.h"
21
22/* This is a shortcut to help you visually see your layout.
23 *
24 * The first section contains all of the arguments representing the physical
25 * layout of the board and position of the keys.
26 *
27 * The second converts the arguments into a two-dimensional array which
28 * represents the switch matrix.
29 */
30
31#define LAYOUT_40ergo_split_ent( \
32 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \
33 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \
34 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
35 K30, K32, K34, K35, K37, K39, K3C \
36) { \
37 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \
38 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \
39 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \
40 { K30, KC_NO, K32, KC_NO, K34, K35, KC_NO, K37, KC_NO, K39, KC_NO, KC_NO, K3C }, \
41}
42
43#define LAYOUT_40ergo_split_ent_encoder( \
44 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \
45 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \
46 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
47 K30, K32, K34, K35, K37, K39, K3C, \
48 E00A, E00B \
49) { \
50 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \
51 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \
52 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \
53 { K30, E00A, K32, E00B, K34, K35, KC_NO, K37, KC_NO, K39, KC_NO, KC_NO, K3C }, \
54}
55
diff --git a/keyboards/nightly_boards/adellein/config.h b/keyboards/nightly_boards/adellein/config.h
new file mode 100644
index 000000000..cd24f1a1c
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/config.h
@@ -0,0 +1,78 @@
1/*
2Copyright 2020 Neil Brian Ramirez
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 0xD812
24#define PRODUCT_ID 0x0010
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Neil Brian Ramirez
27#define PRODUCT Adellein
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 13
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { B1, B0, B5, B6 }
44#define MATRIX_COL_PINS { F7, F6, F5, F4, F1, F0, B7, B3, B2, D0, D1, D2, D3 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50#define RGB_DI_PIN D5
51#ifdef RGB_DI_PIN
52#define RGBLED_NUM 14
53#define RGBLIGHT_ANIMATIONS
54
55#endif
56
57/* Encoders */
58
59#define ENCODERS 1
60
61#define ENCODERS_PAD_A { C7 }
62#define ENCODERS_PAD_B { C6 }
63
64#define ENCODERS_CW_KEY { { 3, 3 } }
65#define ENCODERS_CCW_KEY { { 1, 3 } }
66
67/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
68#define DEBOUNCE 5
69
70/* define if matrix has ghost (lacks anti-ghosting diodes) */
71//#define MATRIX_HAS_GHOST
72
73/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
74#define LOCKING_SUPPORT_ENABLE
75/* Locking resynchronize hack */
76#define LOCKING_RESYNC_ENABLE
77
78
diff --git a/keyboards/nightly_boards/adellein/encoder_action.c b/keyboards/nightly_boards/adellein/encoder_action.c
new file mode 100644
index 000000000..042a3871c
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/encoder_action.c
@@ -0,0 +1,51 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 "encoder_action.h"
18
19#ifdef ENCODERS
20static uint8_t encoder_state[ENCODERS] = {0};
21static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
22static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
23#endif
24
25void encoder_action_unregister(void) {
26#ifdef ENCODERS
27 for (int index = 0; index < ENCODERS; ++index) {
28 if (encoder_state[index]) {
29 keyevent_t encoder_event = (keyevent_t) {
30 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
31 .pressed = false,
32 .time = (timer_read() | 1)
33 };
34 encoder_state[index] = 0;
35 action_exec(encoder_event);
36 }
37 }
38#endif
39}
40
41void encoder_action_register(uint8_t index, bool clockwise) {
42#ifdef ENCODERS
43 keyevent_t encoder_event = (keyevent_t) {
44 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
45 .pressed = true,
46 .time = (timer_read() | 1)
47 };
48 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
49 action_exec(encoder_event);
50#endif
51}
diff --git a/keyboards/nightly_boards/adellein/encoder_action.h b/keyboards/nightly_boards/adellein/encoder_action.h
new file mode 100644
index 000000000..098210d40
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/encoder_action.h
@@ -0,0 +1,21 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 "quantum.h"
18
19void encoder_action_unregister(void);
20
21void encoder_action_register(uint8_t index, bool clockwise); \ No newline at end of file
diff --git a/keyboards/nightly_boards/adellein/info.json b/keyboards/nightly_boards/adellein/info.json
new file mode 100644
index 000000000..64a0a0f55
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/info.json
@@ -0,0 +1,118 @@
1{
2 "keyboard_name": "Adellein",
3 "url": "",
4 "maintainer": "Neil Brian Ramirez",
5 "width": 16.25,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_40ergo_split_ent": {
9 "layout": [
10 {"x":0.5, "y":0},
11 {"x":1.5, "y":0},
12 {"x":2.5, "y":0},
13 {"x":3.5, "y":0},
14 {"x":4.5, "y":0},
15 {"x":5.5, "y":0},
16 {"x":8.25, "y":0},
17 {"x":9.25, "y":0},
18 {"x":10.25, "y":0},
19 {"x":11.25, "y":0},
20 {"x":12.25, "y":0},
21 {"x":13.25, "y":0},
22 {"x":14.25, "y":0, "w":1.5},
23
24 {"x":0.25, "y":1, "w":1.25},
25 {"x":1.5, "y":1},
26 {"x":2.5, "y":1},
27 {"x":3.5, "y":1},
28 {"x":4.5, "y":1},
29 {"x":5.5, "y":1},
30 {"x":8.75, "y":1},
31 {"x":9.75, "y":1},
32 {"x":10.75, "y":1},
33 {"x":11.75, "y":1},
34 {"x":12.75, "y":1},
35 {"x":13.75, "y":1},
36 {"x":14.75, "y":1, "w":1.25},
37
38 {"x":0, "y":2, "w":1.75},
39 {"x":1.75, "y":2},
40 {"x":2.75, "y":2},
41 {"x":3.75, "y":2},
42 {"x":4.75, "y":2},
43 {"x":5.75, "y":2},
44 {"x":8.5, "y":2},
45 {"x":9.5, "y":2},
46 {"x":10.5, "y":2},
47 {"x":11.5, "y":2},
48 {"x":12.5, "y":2},
49 {"x":13.5, "y":2},
50 {"x":14.5, "y":2, "w":1.75},
51
52 {"x":0.25, "y":3, "w":1.25},
53 {"x":2.75, "y":3, "w":1.25},
54 {"x":4, "y":3, "w":2.25},
55 {"x":6.25, "y":3},
56 {"x":8, "y":3, "w":2.75},
57 {"x":10.75, "y":3, "w":1.25},
58 {"x":14.75, "y":3, "w":1.25}
59 ]
60 },
61 "LAYOUT_40ergo_split_ent_encoder": {
62 "layout": [
63 {"x":0.5, "y":0},
64 {"x":1.5, "y":0},
65 {"x":2.5, "y":0},
66 {"x":3.5, "y":0},
67 {"x":4.5, "y":0},
68 {"x":5.5, "y":0},
69 {"x":8.25, "y":0},
70 {"x":9.25, "y":0},
71 {"x":10.25, "y":0},
72 {"x":11.25, "y":0},
73 {"x":12.25, "y":0},
74 {"x":13.25, "y":0},
75 {"x":14.25, "y":0, "w":1.5},
76
77 {"x":0.25, "y":1, "w":1.25},
78 {"x":1.5, "y":1},
79 {"x":2.5, "y":1},
80 {"x":3.5, "y":1},
81 {"x":4.5, "y":1},
82 {"x":5.5, "y":1},
83 {"x":8.75, "y":1},
84 {"x":9.75, "y":1},
85 {"x":10.75, "y":1},
86 {"x":11.75, "y":1},
87 {"x":12.75, "y":1},
88 {"x":13.75, "y":1},
89 {"x":14.75, "y":1, "w":1.25},
90
91 {"x":0, "y":2, "w":1.75},
92 {"x":1.75, "y":2},
93 {"x":2.75, "y":2},
94 {"x":3.75, "y":2},
95 {"x":4.75, "y":2},
96 {"x":5.75, "y":2},
97 {"x":8.5, "y":2},
98 {"x":9.5, "y":2},
99 {"x":10.5, "y":2},
100 {"x":11.5, "y":2},
101 {"x":12.5, "y":2},
102 {"x":13.5, "y":2},
103 {"x":14.5, "y":2, "w":1.75},
104
105 {"x":0.25, "y":3, "w":1.25},
106 {"x":2.75, "y":3, "w":1.25},
107 {"x":4, "y":3, "w":2.25},
108 {"x":6.25, "y":3},
109 {"x":8, "y":3, "w":2.75},
110 {"x":10.75, "y":3, "w":1.25},
111 {"x":14.75, "y":3, "w":1.25},
112
113 {"x":5.75, "y":4},
114 {"x":6.75, "y":4}
115 ]
116 }
117 }
118} \ No newline at end of file
diff --git a/keyboards/nightly_boards/adellein/keymaps/default/keymap.c b/keyboards/nightly_boards/adellein/keymaps/default/keymap.c
new file mode 100644
index 000000000..ccdf46ee4
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/keymaps/default/keymap.c
@@ -0,0 +1,26 @@
1/* Copyright 2020 Neil Brian Ramirez
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
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_40ergo_split_ent(
21 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC,
22 KC_TAB, 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_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RCTL
25 ),
26};
diff --git a/keyboards/nightly_boards/adellein/keymaps/via/keymap.c b/keyboards/nightly_boards/adellein/keymaps/via/keymap.c
new file mode 100644
index 000000000..c4c0adffe
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/keymaps/via/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2020 Neil Brian Ramirez
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
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_40ergo_split_ent_encoder(
21 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC,
22 KC_TAB, 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_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RCTL,
25 KC_VOLD, KC_VOLU
26 ),
27 [1] = LAYOUT_40ergo_split_ent_encoder(
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,
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,
30 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,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
32 KC_TRNS, KC_TRNS
33 ),
34 [2] = LAYOUT_40ergo_split_ent_encoder(
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,
36 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,
37 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,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS
40 ),
41 [3] = LAYOUT_40ergo_split_ent_encoder(
42 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,
43 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,
44 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,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS
47 ),
48
49};
diff --git a/keyboards/nightly_boards/adellein/keymaps/via/rules.mk b/keyboards/nightly_boards/adellein/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/nightly_boards/adellein/readme.md b/keyboards/nightly_boards/adellein/readme.md
new file mode 100644
index 000000000..1253b2692
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/readme.md
@@ -0,0 +1,20 @@
1# Nightly Boards Adellein
2
3![Adellein](https://i.imgur.com/WIZvvcDl.png)
4
5A 40% alice-like keyboard with rotary encoder support
6
7* Keyboard Maintainer: [Neil Brian Ramirez](https://github.com/NightlyBoards)
8* Hardware Supported: atmega32u4
9
10Make example for this keyboard (after setting up your build environment):
11
12 make nightly_boards/adellein:default
13
14Flashing example for this keyboard:
15
16 make nightly_boards/adellein:default:flash
17
18You can enter bootloader mode by pressing the physical reset button at the back of the pcb or by holding the upper left key while plugging the usb cable.
19
20See 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/nightly_boards/adellein/rules.mk b/keyboards/nightly_boards/adellein/rules.mk
new file mode 100644
index 000000000..f78597b91
--- /dev/null
+++ b/keyboards/nightly_boards/adellein/rules.mk
@@ -0,0 +1,26 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22ENCODER_ENABLE = yes # Enable Rotary Encoders
23LTO_ENABLE = yes
24
25# Added encoder Action
26SRC += encoder_action.c \ No newline at end of file