aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lily58/light
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lily58/light')
-rw-r--r--keyboards/lily58/light/config.h53
-rw-r--r--keyboards/lily58/light/info.json18
-rw-r--r--keyboards/lily58/light/light.c16
-rw-r--r--keyboards/lily58/light/light.h50
-rw-r--r--keyboards/lily58/light/rules.mk3
5 files changed, 140 insertions, 0 deletions
diff --git a/keyboards/lily58/light/config.h b/keyboards/lily58/light/config.h
new file mode 100644
index 000000000..1893dde8e
--- /dev/null
+++ b/keyboards/lily58/light/config.h
@@ -0,0 +1,53 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4Copyright 2017 F_YUUCHI
5Copyright 2020 Ben Roesner (keycapsss.com)
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/* USB Device descriptor parameter */
24#define VENDOR_ID 0x7983
25#define PRODUCT_ID 0x4C4C // "LL"
26#define DEVICE_VER 0x0100
27#define MANUFACTURER Keycapsss
28#define PRODUCT Lily58L
29
30/* key matrix size */
31// Rows are doubled-up
32#define MATRIX_ROWS 10
33#define MATRIX_COLS 6
34
35// wiring of each half
36#define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
37#define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42#define SOFT_SERIAL_PIN D2
43
44#define RGB_DI_PIN D3
45#define RGBLED_SPLIT { 35, 35 }
46#define RGBLED_NUM 70
47#define RGBLIGHT_SPLIT
48#define RGBLIGHT_LIMIT_VAL 120
49
50#define ENCODERS_PAD_A { F4 }
51#define ENCODERS_PAD_B { F5 }
52#define ENCODERS_PAD_A_RIGHT { F5 }
53#define ENCODERS_PAD_B_RIGHT { F4 }
diff --git a/keyboards/lily58/light/info.json b/keyboards/lily58/light/info.json
new file mode 100644
index 000000000..a305103a9
--- /dev/null
+++ b/keyboards/lily58/light/info.json
@@ -0,0 +1,18 @@
1{
2 "keyboard_name": "Lily58",
3 "url": "https://keycapsss.com",
4 "maintainer": "BenRoe",
5 "width": 16.5,
6 "height": 5.25,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"x":0, "y":0.5}, {"x":1, "y":0.375}, {"x":2, "y":0.125}, {"x":3, "y":0}, {"x":4, "y":0.125}, {"x":5, "y":0.25}, {"x":10.5, "y":0.25}, {"x":11.5, "y":0.125}, {"x":12.5, "y":0}, {"x":13.5, "y":0.125}, {"x":14.5, "y":0.375}, {"x":15.5, "y":0.5},
11 {"x":0, "y":1.5}, {"x":1, "y":1.375}, {"x":2, "y":1.125}, {"x":3, "y":1}, {"x":4, "y":1.125}, {"x":5, "y":1.25}, {"x":10.5, "y":1.25}, {"x":11.5, "y":1.125}, {"x":12.5, "y":1}, {"x":13.5, "y":1.125}, {"x":14.5, "y":1.375}, {"x":15.5, "y":1.5},
12 {"x":0, "y":2.5}, {"x":1, "y":2.375}, {"x":2, "y":2.125}, {"x":3, "y":2}, {"x":4, "y":2.125}, {"x":5, "y":2.25}, {"x":10.5, "y":2.25}, {"x":11.5, "y":2.125}, {"x":12.5, "y":2}, {"x":13.5, "y":2.125}, {"x":14.5, "y":2.375}, {"x":15.5, "y":2.5},
13 {"x":0, "y":3.5}, {"x":1, "y":3.375}, {"x":2, "y":3.125}, {"x":3, "y":3}, {"x":4, "y":3.125}, {"x":5, "y":3.25}, {"x":6, "y":2.75}, {"x":9.5, "y":2.75}, {"x":10.5, "y":3.25}, {"x":11.5, "y":3.125}, {"x":12.5, "y":3}, {"x":13.5, "y":3.125}, {"x":14.5, "y":3.375}, {"x":15.5, "y":3.5},
14 {"x":2.5, "y":4.125}, {"x":3.5, "y":4.15}, {"x":4.5, "y":4.25}, {"x":6, "y":4.25, "h":1.5}, {"x":9.5, "y":4.25, "h":1.5}, {"x":11, "y":4.25}, {"x":12, "y":4.15}, {"x":13, "y":4.15}
15 ]
16 }
17 }
18}
diff --git a/keyboards/lily58/light/light.c b/keyboards/lily58/light/light.c
new file mode 100644
index 000000000..57a0df93d
--- /dev/null
+++ b/keyboards/lily58/light/light.c
@@ -0,0 +1,16 @@
1/*
2Copyright 2020 Ben Roesner (keycapsss.com)
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11You should have received a copy of the GNU General Public License
12along with this program. If not, see <http://www.gnu.org/licenses/>.
13*/
14
15#include "lily58.h"
16
diff --git a/keyboards/lily58/light/light.h b/keyboards/lily58/light/light.h
new file mode 100644
index 000000000..833ad13d0
--- /dev/null
+++ b/keyboards/lily58/light/light.h
@@ -0,0 +1,50 @@
1#pragma once
2
3#include "lily58.h"
4
5#include "quantum.h"
6
7
8#ifndef FLIP_HALF
9#define LAYOUT( \
10 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
11 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
12 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
13 L30, L31, L32, L33, L34, L35, L45, R40, R30, R31, R32, R33, R34, R35, \
14 L41, L42, L43, L44, R41, R42, R43, R44 \
15 ) \
16 { \
17 { L00, L01, L02, L03, L04, L05 }, \
18 { L10, L11, L12, L13, L14, L15 }, \
19 { L20, L21, L22, L23, L24, L25 }, \
20 { L30, L31, L32, L33, L34, L35 }, \
21 { KC_NO, L41, L42, L43, L44, L45 }, \
22 { R05, R04, R03, R02, R01, R00 }, \
23 { R15, R14, R13, R12, R11, R10 }, \
24 { R25, R24, R23, R22, R21, R20 }, \
25 { R35, R34, R33, R32, R31, R30 }, \
26 { KC_NO, R44, R43, R42, R41, R40 } \
27 }
28#else
29// Keymap with right side flipped
30// (TRRS jack on both halves are to the right)
31#define LAYOUT( \
32 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
33 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
34 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
35 L30, L31, L32, L33, L34, L35, L45, R30, R31, R32, R33, R34, R35, R45, \
36 L41, L42, L43, L44, R41, R42, R43, R44 \
37 ) \
38 { \
39 { L00, L01, L02, L03, L04, L05 }, \
40 { L10, L11, L12, L13, L14, L15 }, \
41 { L20, L21, L22, L23, L24, L25 }, \
42 { L30, L31, L32, L33, L34, L35 }, \
43 { KC_NO, L41, L42, L43, L44, L45 }, \
44 { R00, R01, R02, R03, R04, R05 }, \
45 { R10, R11, R12, R13, R14, R15 }, \
46 { R20, R21, R22, R23, R24, R25 }, \
47 { R30, R31, R32, R33, R34, R35 }, \
48 { KC_NO, R41, R42, R43, R44, R45 } \
49 }
50#endif
diff --git a/keyboards/lily58/light/rules.mk b/keyboards/lily58/light/rules.mk
new file mode 100644
index 000000000..d4957d98e
--- /dev/null
+++ b/keyboards/lily58/light/rules.mk
@@ -0,0 +1,3 @@
1ENCODER_ENABLE = yes # ENables the use of one or more encoders
2RGBLIGHT_ENABLE = yes # Enable keyboard RGB light
3LTO_ENABLE = yes # significantly reduce the compiled size, but disable the legacy TMK Macros and Functions features