aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/lyra/config.h19
-rw-r--r--keyboards/lyra/keymaps/default/config.h30
-rw-r--r--keyboards/lyra/keymaps/default/keymap.c48
-rw-r--r--keyboards/lyra/keymaps/default/rules.mk1
-rw-r--r--keyboards/lyra/keymaps/via/config.h30
-rw-r--r--keyboards/lyra/keymaps/via/keymap.c55
-rw-r--r--keyboards/lyra/keymaps/via/rules.mk2
-rw-r--r--keyboards/lyra/lyra.c89
-rw-r--r--keyboards/lyra/lyra.h23
-rw-r--r--keyboards/lyra/readme.md20
-rw-r--r--keyboards/lyra/rev1/config.h50
-rw-r--r--keyboards/lyra/rev1/info.json90
-rw-r--r--keyboards/lyra/rev1/rev1.c17
-rw-r--r--keyboards/lyra/rev1/rev1.h39
-rw-r--r--keyboards/lyra/rev1/rules.mk27
15 files changed, 540 insertions, 0 deletions
diff --git a/keyboards/lyra/config.h b/keyboards/lyra/config.h
new file mode 100644
index 000000000..a4606507c
--- /dev/null
+++ b/keyboards/lyra/config.h
@@ -0,0 +1,19 @@
1 /* Copyright 2021 Domanic Calleja
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#pragma once
17
18#include "config_common.h"
19
diff --git a/keyboards/lyra/keymaps/default/config.h b/keyboards/lyra/keymaps/default/config.h
new file mode 100644
index 000000000..9c4bacd36
--- /dev/null
+++ b/keyboards/lyra/keymaps/default/config.h
@@ -0,0 +1,30 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23/* Select hand configuration */
24
25#define MASTER_LEFT
26// #define MASTER_RIGHT
27// #define EE_HANDS
28
29#define TAPPING_FORCE_HOLD
30#define TAPPING_TERM 100
diff --git a/keyboards/lyra/keymaps/default/keymap.c b/keyboards/lyra/keymaps/default/keymap.c
new file mode 100644
index 000000000..1d4bef03f
--- /dev/null
+++ b/keyboards/lyra/keymaps/default/keymap.c
@@ -0,0 +1,48 @@
1 /* Copyright 2021 Domanic Calleja
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 QMK_KEYBOARD_H
18//
19// Keymaps
20//
21enum lyra_layers {
22 /* _M_XYZ = Mac Os, _W_XYZ = Win/Linux */
23 _QWERTY,
24 _FUNCTION
25
26};
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28
29 // Layer 0
30 [_QWERTY] = LAYOUT(
31 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,
32 KC_TAB, KC_LBRC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NUHS, KC_DEL,
33 KC_CLCK, KC_RBRC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
34 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT,
35 KC_LCTL, KC_LGUI, KC_LALT, TT(1), KC_APP, KC_PGDN, KC_SPC, KC_SPC, KC_PGUP, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
36 ),
37
38 // Layer 1
39 [_FUNCTION] = LAYOUT(
40 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 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, 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, KC_TRNS,
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_TRNS, KC_TRNS, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
45 )
46
47};
48
diff --git a/keyboards/lyra/keymaps/default/rules.mk b/keyboards/lyra/keymaps/default/rules.mk
new file mode 100644
index 000000000..c02c44983
--- /dev/null
+++ b/keyboards/lyra/keymaps/default/rules.mk
@@ -0,0 +1 @@
CONSOLE_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/lyra/keymaps/via/config.h b/keyboards/lyra/keymaps/via/config.h
new file mode 100644
index 000000000..9c4bacd36
--- /dev/null
+++ b/keyboards/lyra/keymaps/via/config.h
@@ -0,0 +1,30 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23/* Select hand configuration */
24
25#define MASTER_LEFT
26// #define MASTER_RIGHT
27// #define EE_HANDS
28
29#define TAPPING_FORCE_HOLD
30#define TAPPING_TERM 100
diff --git a/keyboards/lyra/keymaps/via/keymap.c b/keyboards/lyra/keymaps/via/keymap.c
new file mode 100644
index 000000000..aa88c2aac
--- /dev/null
+++ b/keyboards/lyra/keymaps/via/keymap.c
@@ -0,0 +1,55 @@
1 /* Copyright 2021 Domanic Calleja
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// Keymaps
19//
20
21const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
22
23 // Layer 0
24 [0] = LAYOUT(
25 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,
26 KC_TAB, KC_LBRC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NUHS, KC_DEL,
27 KC_CLCK, KC_RBRC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
28 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT,
29 KC_LCTL, KC_LGUI, KC_LALT, TT(1), KC_APP, KC_PGDN, KC_SPC, KC_SPC, KC_PGUP, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
30 ),
31
32 // Layer 1
33 [1] = LAYOUT(
34 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 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, 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, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_TRNS, KC_TRNS, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
39 ),
40 // Layer 2
41 [2] = LAYOUT(
42 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, 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, 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, KC_TRNS,
45 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,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_TRNS, KC_TRNS, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
47 ),
48 // Layer 3
49 [3] = LAYOUT(
50 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS,
51 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,
52 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,
53 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,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_TRNS, KC_TRNS, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
55 ),
diff --git a/keyboards/lyra/keymaps/via/rules.mk b/keyboards/lyra/keymaps/via/rules.mk
new file mode 100644
index 000000000..5e92d952f
--- /dev/null
+++ b/keyboards/lyra/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1CONSOLE_ENABLE = yes
2VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/lyra/lyra.c b/keyboards/lyra/lyra.c
new file mode 100644
index 000000000..19f6e4464
--- /dev/null
+++ b/keyboards/lyra/lyra.c
@@ -0,0 +1,89 @@
1 /* Copyright 2021 Domanic Calleja
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 "lyra.h"
17
18#ifdef OLED_DRIVER_ENABLE
19
20// 'lyralogooled', 32x128px
21__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) {
22 if (is_keyboard_master()) {
23 return OLED_ROTATION_270;
24 }
25 return rotation;
26}
27
28__attribute__((weak)) void oled_task_user(void) {
29 if (is_keyboard_master()) {
30 oled_write_P(PSTR(" "), false);
31# ifdef WPM_ENABLE
32 uint8_t n = get_current_wpm();
33 char wpm_counter[4];
34 wpm_counter[3] = '\0';
35 wpm_counter[2] = '0' + n % 10;
36 wpm_counter[1] = (n /= 10) % 10 ? '0' + (n) % 10 : (n / 10) % 10 ? '0' : ' ';
37 wpm_counter[0] = n / 10 ? '0' + n / 10 : ' ';
38 oled_write(wpm_counter, false);
39 oled_write_ln_P(PSTR(" WPM"), false);
40# else
41 oled_advance_page(true);
42# endif
43 oled_advance_page(true);
44 led_t led_usb_state = host_keyboard_led_state();
45 oled_write_ln_P(PSTR("CPSLK"), led_usb_state.caps_lock);
46 oled_advance_page(true); oled_advance_page(true);
47 oled_write_ln_P(PSTR("Lyra"), false);
48 oled_write_ln_P(PSTR("v1.1"), false);
49 oled_write_ln_P(PSTR("by"), false);
50 oled_write_P(PSTR("Dom C"), false);
51 } else {
52 static const char PROGMEM QMK_logo[] = {
53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe0, 0x78, 0x18, 0x0c, 0x04, 0x06, 0x02,
54 0x02, 0x82, 0xc0, 0xf0, 0x38, 0x8c, 0xf2, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
55 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
56 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
57 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80,
58 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
59 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
60 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x1f, 0x18, 0x30, 0x20, 0xa0, 0xe0, 0xf8,
62 0x3e, 0x1f, 0x13, 0x0c, 0x06, 0xc3, 0xf0, 0x60, 0x00, 0x80, 0xf0, 0xe0, 0x00, 0x38, 0xfe, 0x67,
63 0x7b, 0xa5, 0xf3, 0xf0, 0x70, 0x00, 0x00, 0x80, 0xc0, 0xc0, 0xe0, 0x70, 0x30, 0x20, 0x00, 0x00,
64 0x00, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xc0, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0x3e, 0x61, 0xdf,
65 0xde, 0xde, 0x01, 0xff, 0xfe, 0x00, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xdf, 0xdf, 0xdf, 0xe0, 0xff,
66 0x7f, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0xfe, 0xc1, 0xfd, 0x7d, 0xc3, 0xfd, 0x7d,
67 0xc3, 0xfe, 0xfc, 0x30, 0xea, 0xd5, 0xd5, 0xd5, 0xc3, 0xff, 0xfe, 0x7e, 0xc1, 0xfd, 0x7d, 0x7d,
68 0xc3, 0xfe, 0xfc, 0x3f, 0xe1, 0xff, 0xff, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xf7, 0xe6, 0x00, 0x00,
69 0x00, 0x78, 0xc4, 0xc2, 0x82, 0x82, 0x82, 0x82, 0xc2, 0xe4, 0x74, 0x7c, 0x3f, 0x1f, 0x31, 0x60,
70 0xe0, 0xc0, 0x80, 0x9c, 0xbf, 0xe7, 0xf1, 0x78, 0x3e, 0x1f, 0x0b, 0x04, 0x02, 0x01, 0x00, 0x1c,
71 0x3e, 0x2f, 0x13, 0x10, 0x0c, 0x1e, 0x3f, 0x2f, 0x13, 0x09, 0x1c, 0x3e, 0x2f, 0x10, 0x08, 0x06,
72 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06,
73 0x06, 0x06, 0x07, 0x03, 0x7f, 0xc1, 0xbe, 0xbe, 0xbe, 0xa6, 0xe7, 0xc7, 0x60, 0xd4, 0xaa, 0xaa,
74 0xaa, 0x86, 0xfe, 0xfc, 0x7f, 0xc0, 0xff, 0xff, 0x7f, 0xc0, 0xff, 0xff, 0xc4, 0xaa, 0xaa, 0xaa,
75 0xa6, 0xfc, 0xf8, 0xff, 0x02, 0xff, 0xff, 0x60, 0xd4, 0xaa, 0xaa, 0xaa, 0x86, 0xfe, 0xfc, 0x00,
76 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
77 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x28, 0x24,
78 0x32, 0x1b, 0x1f, 0x0f, 0x0f, 0x1f, 0x1f, 0x3c, 0x38, 0x38, 0x78, 0x70, 0x70, 0x70, 0x30, 0x38,
79 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
80 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01,
82 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01,
83 0x01, 0x01, 0x07, 0x0d, 0x0e, 0x07, 0x03, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00,
84 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
85 };
86 oled_write_raw_P(QMK_logo, sizeof(QMK_logo));
87 }
88}
89#endif
diff --git a/keyboards/lyra/lyra.h b/keyboards/lyra/lyra.h
new file mode 100644
index 000000000..ba0c8344f
--- /dev/null
+++ b/keyboards/lyra/lyra.h
@@ -0,0 +1,23 @@
1 /* Copyright 2021 Domanic Calleja
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#pragma once
17
18#include "quantum.h"
19
20
21#ifdef KEYBOARD_lyra_rev1
22 #include "rev1.h"
23#endif
diff --git a/keyboards/lyra/readme.md b/keyboards/lyra/readme.md
new file mode 100644
index 000000000..575afa3f0
--- /dev/null
+++ b/keyboards/lyra/readme.md
@@ -0,0 +1,20 @@
1# Lyra Keyboard
2By Domanic Calleja - https://github.com/Malevolti
3
4Lyra is 7x5 keys column-staggered split keyboard. Based on Sofle, Lily58, Corne and Helix keyboards.
5There is an open source PCB available via https://github.com/Malevolti/Lyra
6Instructions for handwiring and hand-wire specific case STLs are available for home 3d printing
7
8Make example for this keyboard (after setting up your build environment):
9
10 make lyra:default
11
12Flashing example for this keyboard:
13
14 make lyra:default:flash
15
16Press reset button on the keyboard when asked.
17
18Disconnect the first half, connect the second one and repeat the process.
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/lyra/rev1/config.h b/keyboards/lyra/rev1/config.h
new file mode 100644
index 000000000..3dc9af28a
--- /dev/null
+++ b/keyboards/lyra/rev1/config.h
@@ -0,0 +1,50 @@
1 /* Copyright 2021 Domanic Calleja
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#pragma once
17
18/* USB Device descriptor parameter */
19#define VENDOR_ID 0x4443 //DC
20#define PRODUCT_ID 0x4C43 //LC
21#define DEVICE_VER 0x3031 //01
22#define MANUFACTURER Dom
23#define PRODUCT Lyra
24
25/* key matrix size */
26// Rows are doubled-up
27#define MATRIX_ROWS 10
28#define MATRIX_COLS 7
29
30// wiring of each half
31#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
32#define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 }
33
34#define DIODE_DIRECTION COL2ROW
35
36#define TAPPING_TERM 100
37
38/* define if matrix has ghost */
39//#define MATRIX_HAS_GHOST
40
41/* Set 0 if debouncing isn't needed */
42#define DEBOUNCE 5
43
44/* communication between sides */
45#define USE_SERIAL
46#define SERIAL_USE_MULTI_TRANSACTION
47#define SOFT_SERIAL_PIN D2
48
49#define NO_ACTION_MACRO
50#define NO_ACTION_FUNCTION
diff --git a/keyboards/lyra/rev1/info.json b/keyboards/lyra/rev1/info.json
new file mode 100644
index 000000000..82dd811fd
--- /dev/null
+++ b/keyboards/lyra/rev1/info.json
@@ -0,0 +1,90 @@
1{
2 "keyboard_name": "lyra",
3 "url": "",
4 "maintainer": "malevolti",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"x": 0, "y": 0.3},
9 {"x": 1, "y": 0.4},
10 {"x": 2, "y": 0.3},
11 {"x": 3, "y": 0.1},
12 {"x": 4, "y": 0},
13 {"x": 5, "y": 0.1},
14 {"x": 6, "y": 0.25},
15
16 {"x": 8, "y": 0.25},
17 {"x": 9, "y": 0.1},
18 {"x": 10, "y": 0},
19 {"x": 11, "y": 0.1},
20 {"x": 12, "y": 0.3},
21 {"x": 13, "y": 0.4},
22 {"x": 14, "y": 0.3},
23
24 {"x": 0, "y": 1.3},
25 {"x": 1, "y": 1.4},
26 {"x": 2, "y": 1.3},
27 {"x": 3, "y": 1.1},
28 {"x": 4, "y": 1},
29 {"x": 5, "y": 1.1},
30 {"x": 6, "y": 1.25},
31
32 {"x": 8, "y": 1.25},
33 {"x": 9, "y": 1.1},
34 {"x": 10, "y": 1},
35 {"x": 11, "y": 1.1},
36 {"x": 12, "y": 1.3},
37 {"x": 13, "y": 1.4},
38 {"x": 14, "y": 1.3},
39
40 {"x": 0, "y": 2.3},
41 {"x": 1, "y": 2.4},
42 {"x": 2, "y": 2.3},
43 {"x": 3, "y": 2.1},
44 {"x": 4, "y": 2},
45 {"x": 5, "y": 2.1},
46 {"x": 6, "y": 2.25},
47
48 {"x": 8, "y": 2.25},
49 {"x": 9, "y": 2.1},
50 {"x": 10, "y": 2},
51 {"x": 11, "y": 2.1},
52 {"x": 12, "y": 2.3},
53 {"x": 13, "y": 2.4},
54 {"x": 14, "y": 2.3},
55
56 {"x": 0, "y": 3.3},
57 {"x": 1, "y": 3.4},
58 {"x": 2, "y": 3.3},
59 {"x": 3, "y": 3.1},
60 {"x": 4, "y": 3},
61 {"x": 5, "y": 3.1},
62 {"x": 6, "y": 3.25},
63
64 {"x": 8, "y": 3.25},
65 {"x": 9, "y": 3.1},
66 {"x": 10, "y": 3},
67 {"x": 11, "y": 3.1},
68 {"x": 12, "y": 3.3},
69 {"x": 13, "y": 3.4},
70 {"x": 14, "y": 3.3},
71
72 {"x": 0, "y": 4.3},
73 {"x": 1, "y": 4.4},
74 {"x": 2, "y": 4.3},
75 {"x": 3, "y": 4.1},
76 {"x": 4, "y": 4},
77 {"x": 5, "y": 4.1},
78 {"x": 6.25, "y": 4.5},
79
80 {"x": 7.75, "y": 4.5},
81 {"x": 9, "y": 4.1},
82 {"x": 10, "y": 4},
83 {"x": 11, "y": 4.1},
84 {"x": 12, "y": 4.3},
85 {"x": 13, "y": 4.4},
86 {"x": 14, "y": 4.3}
87 ]
88 }
89 }
90}
diff --git a/keyboards/lyra/rev1/rev1.c b/keyboards/lyra/rev1/rev1.c
new file mode 100644
index 000000000..5d66e2bbf
--- /dev/null
+++ b/keyboards/lyra/rev1/rev1.c
@@ -0,0 +1,17 @@
1 /* Copyright 2021 Domanic Calleja
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 "rev1.h"
diff --git a/keyboards/lyra/rev1/rev1.h b/keyboards/lyra/rev1/rev1.h
new file mode 100644
index 000000000..81b862c5c
--- /dev/null
+++ b/keyboards/lyra/rev1/rev1.h
@@ -0,0 +1,39 @@
1/* Copyright 2021 Domanic Calleja
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#include "lyra.h"
19
20
21#define LAYOUT( \
22 L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
23 L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
24 L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
25 L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \
26 L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \
27 ) \
28 { \
29 { L00, L01, L02, L03, L04, L05, L06 }, \
30 { L10, L11, L12, L13, L14, L15, L16 }, \
31 { L20, L21, L22, L23, L24, L25, L26 }, \
32 { L30, L31, L32, L33, L34, L35, L36 }, \
33 { L40, L41, L42, L43, L44, L45, L46 }, \
34 { R06, R05, R04, R03, R02, R01, R00 }, \
35 { R16, R15, R14, R13, R12, R11, R10 }, \
36 { R26, R25, R24, R23, R22, R21, R20 }, \
37 { R36, R35, R34, R33, R32, R31, R30 }, \
38 { R46, R45, R44, R43, R42, R41, R40 } \
39 }
diff --git a/keyboards/lyra/rev1/rules.mk b/keyboards/lyra/rev1/rules.mk
new file mode 100644
index 000000000..58cc6996f
--- /dev/null
+++ b/keyboards/lyra/rev1/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
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 = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24SPLIT_KEYBOARD = yes
25OLED_ENABLE = yes
26WPM_ENABLE = yes
27LTO_ENABLE = yes \ No newline at end of file