Skip to content

Commit 127b53b

Browse files
authored
Add Support for Lilly58 r2g (qmk#19862)
* Add support for lilly58 r2g by Mechboards
1 parent 95dd573 commit 127b53b

File tree

8 files changed

+530
-0
lines changed

8 files changed

+530
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
This is the c configuration file for the keymap
3+
4+
Copyright 2012 Jun Wako <[email protected]>
5+
Copyright 2015 Jack Humbert
6+
Copyright 2023 Elliot Powell
7+
8+
This program is free software: you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation, either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
This program is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*/
21+
22+
#pragma once
23+
24+
/* Select hand configuration */
25+
26+
#define MASTER_LEFT
27+
// #define MASTER_RIGHT
28+
// #define EE_HANDS
29+
30+
#define TAPPING_FORCE_HOLD
31+
#define TAPPING_TERM 100
32+
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/* Copyright 2020 Naoki Katahira
2+
* Copyright 2023 Elliot Powell
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 2 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
#include QMK_KEYBOARD_H
19+
20+
enum layer_number {
21+
_QWERTY = 0,
22+
_LOWER,
23+
_RAISE,
24+
_ADJUST,
25+
};
26+
27+
#define RAISE MO(_RAISE)
28+
#define LOWER MO(_LOWER)
29+
30+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31+
32+
/* QWERTY
33+
* ,-----------------------------------------. ,-----------------------------------------.
34+
* | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ~ |
35+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
36+
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | - |
37+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
38+
* |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
39+
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
40+
* |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / |RShift|
41+
* `-----------------------------------------/ / \ \-----------------------------------------'
42+
* |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE |
43+
* | | | |/ / \ \ | | | |
44+
* `-------------------''-------' '------''--------------------'
45+
*/
46+
47+
[_QWERTY] = LAYOUT(
48+
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV,
49+
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS,
50+
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
51+
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
52+
LOWER, KC_LGUI, KC_LALT, KC_SPC, KC_ENT, KC_BSPC, KC_RGUI, RAISE
53+
),
54+
/* LOWER
55+
* ,-----------------------------------------. ,-----------------------------------------.
56+
* | | | | | | | | | | | | | |
57+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
58+
* | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
59+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
60+
* | | 1 | 2 | 3 | 4 | 5 |-------. ,-------| 6 | 7 | 8 | 9 | 0 | |
61+
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
62+
* | | | | | | |-------| |-------| | | ` | + | { | } | |
63+
* `-----------------------------------------/ / \ \-----------------------------------------'
64+
* |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE |
65+
* | | | |/ / \ \ | | | |
66+
* `-------------------''-------' '------''--------------------'
67+
*/
68+
[_LOWER] = LAYOUT(
69+
_______, _______, _______, _______, _______, _______, _______, _______, _______,_______, _______, _______,
70+
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
71+
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
72+
_______, _______, _______, _______, _______, _______, _______, _______, KC_PIPE, KC_GRAVE, KC_PLUS, KC_LCBR, KC_RCBR, _______,
73+
_______, _______, _______, _______, _______, _______, _______, _______
74+
),
75+
/* RAISE
76+
* ,-----------------------------------------. ,-----------------------------------------.
77+
* | | | | | | | | | | | | | |
78+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
79+
* | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
80+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
81+
* |RGBTOG|RGBHUI|RGBSAI|RGBVAI| |-------. ,-------| | Left | Down | Up |Right | |
82+
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
83+
* |RGBMOD|RGBHUD|RGBSAD|RGBVAD| | |-------| |-------| + | = | [ | ] | \ | |
84+
* `-----------------------------------------/ / \ \-----------------------------------------'
85+
* |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE |
86+
* | | | |/ / \ \ | | | |
87+
* `-------------------''-------' '------''--------------------'
88+
*/
89+
90+
[_RAISE] = LAYOUT(
91+
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
92+
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
93+
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX,
94+
RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, KC_PLUS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, _______,
95+
_______, _______, _______, _______, _______, _______, _______, _______
96+
),
97+
98+
/* ADJUST
99+
* ,-----------------------------------------. ,-----------------------------------------.
100+
* | | | | | | | | | | | | | |
101+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
102+
* | | | | | | | | | | | | | |
103+
* |------+------+------+------+------+------| |------+------+------+------+------+------|
104+
* | | | | | | |-------. ,-------| | | | | | |
105+
* |------+------+------+------+------+------| | | |------+------+------+------+------+------|
106+
* | | | | | | |-------| |-------| | | | | | |
107+
* `-----------------------------------------/ / \ \-----------------------------------------'
108+
* |LOWER | LGUI | Alt | /Space / \Enter \ |BackSP| RGUI |RAISE |
109+
* | | | |/ / \ \ | | | |
110+
* `----------------------------' '------''--------------------'
111+
*/
112+
[_ADJUST] = LAYOUT(
113+
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
114+
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
115+
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
116+
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
117+
_______, _______, _______, _______, _______, _______, _______, _______
118+
)
119+
};
120+
121+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
VIA_ENABLE = yes
2+
OLED_ENABLE = yes
3+
OLED_DRIVER = SSD1306
4+
MOUSEKEY_ENABLE = yes
5+
EXTRAKEY_ENABLE = yes

keyboards/lily58/r2g/config.h

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
Copyright 2012 Jun Wako <[email protected]>
3+
Copyright 2015 Jack Humbert
4+
Copyright 2017 F_YUUCHI
5+
Copyright 2023 Elliot Powell
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 2 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
21+
#pragma once
22+
//#define SERIAL_USE_MULTI_TRANSACTION
23+
24+
25+
#ifdef RGB_MATRIX_ENABLE
26+
# define RGB_DI_PIN D3
27+
# define RGB_MATRIX_LED_COUNT 74
28+
# define RGB_DISABLE_WHEN_USB_SUSPENDED
29+
# define RGB_MATRIX_LED_FLUSH_LIMIT 16
30+
# define RGB_MATRIX_KEYPRESSES
31+
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
32+
# define RGB_MATRIX_KEYPRESSES
33+
# define RGB_MATRIX_KEYRELEASES
34+
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
35+
36+
37+
# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
38+
# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
39+
# define ENABLE_RGB_MATRIX_ALPHAS_MODS
40+
# define ENABLE_RGB_MATRIX_BREATHING
41+
# define ENABLE_RGB_MATRIX_HUE_WAVE
42+
# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
43+
# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
44+
45+
#if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
46+
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
47+
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
48+
# define ENABLE_RGB_MATRIX_MULTISPLASH
49+
#endif
50+
51+
# define SPLIT_TRANSPORT_MIRROR
52+
#endif
53+
54+
#ifdef RGBLIGHT_ENABLE
55+
# define RGBLIGHT_LIMIT_VAL 120
56+
#endif
57+

0 commit comments

Comments
 (0)