Skip to content

Commit 6af60dd

Browse files
feat: add lily58 and splitkb_aurora_sofle support
1 parent a5d6700 commit 6af60dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2435
-112
lines changed

CHANGELOG.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog file for Structures extra.
22
https://github.com/mctechnology17/zmk-config/blob/main/CHANGELOG.txt
33

4+
# FEATURES 0.0.2-beta3 (Jan 06, 2025)
5+
=======================================
6+
+ NEW FEATURES
7+
- [x] lily58 support (see boards/shields/lily58/)
8+
- [x] splitkb_aurora_sofle support (boards/shields/splitkb_aurora_sofle/)
9+
- [x] readme updated
10+
- [x] build.yaml updated
11+
- [x] config_keymap-drawer.yaml updated
12+
- [x] corne.keymap updated (The option to see the layer on the screen was added)
13+
414
# FEATURES 0.0.2-beta2 (Jan 03, 2025)
515
=======================================
616
+ NEW FEATURES

README.md

Lines changed: 140 additions & 72 deletions
Large diffs are not rendered by default.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
if SHIELD_LILY58_LEFT || SHIELD_LILY58_DONGLE_XIAO || SHIELD_LILY58_DONGLE_PRO_MICRO
3+
4+
config ZMK_KEYBOARD_NAME
5+
default "Lily58"
6+
7+
config ZMK_SPLIT_ROLE_CENTRAL
8+
default y
9+
10+
endif
11+
12+
if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT || SHIELD_LILY58_LEFT_PERIPHERAL || SHIELD_LILY58_DONGLE_XIAO || SHIELD_LILY58_DONGLE_PRO_MICRO
13+
14+
config ZMK_SPLIT
15+
default y
16+
17+
if ZMK_DISPLAY
18+
19+
config I2C
20+
default y
21+
22+
config SSD1306
23+
default y
24+
25+
if SHIELD_LILY58_DONGLE_XIAO || SHIELD_LILY58_DONGLE_PRO_MICRO
26+
27+
choice ZMK_DISPLAY_WORK_QUEUE
28+
default ZMK_DISPLAY_WORK_QUEUE_DEDICATED
29+
endchoice
30+
31+
endif
32+
33+
endif # ZMK_DISPLAY
34+
35+
if LVGL
36+
37+
config LV_Z_VDB_SIZE
38+
default 64
39+
40+
config LV_DPI_DEF
41+
default 148
42+
43+
config LV_Z_BITS_PER_PIXEL
44+
default 1
45+
46+
choice LV_COLOR_DEPTH
47+
default LV_COLOR_DEPTH_1
48+
endchoice
49+
50+
endif # LVGL
51+
52+
endif

boards/shields/lily58/Kconfig.shield

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2020 Pete Johanson
2+
# SPDX-License-Identifier: MIT
3+
4+
config SHIELD_LILY58_LEFT
5+
def_bool $(shields_list_contains,lily58_left)
6+
7+
config SHIELD_LILY58_RIGHT
8+
def_bool $(shields_list_contains,lily58_right)
9+
10+
config SHIELD_LILY58_LEFT_PERIPHERAL
11+
def_bool $(shields_list_contains,lily58_left_peripheral)
12+
13+
config SHIELD_LILY58_DONGLE_XIAO
14+
def_bool $(shields_list_contains,lily58_dongle_xiao)
15+
16+
config SHIELD_LILY58_DONGLE_PRO_MICRO
17+
def_bool $(shields_list_contains,lily58_dongle_pro_micro)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#include <dt-bindings/led/led.h>
2+
3+
&pinctrl {
4+
spi3_default: spi3_default {
5+
group1 {
6+
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
7+
};
8+
};
9+
10+
spi3_sleep: spi3_sleep {
11+
group1 {
12+
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
13+
low-power-enable;
14+
};
15+
};
16+
};
17+
18+
&spi3 {
19+
compatible = "nordic,nrf-spim";
20+
status = "okay";
21+
22+
pinctrl-0 = <&spi3_default>;
23+
pinctrl-1 = <&spi3_sleep>;
24+
pinctrl-names = "default", "sleep";
25+
26+
led_strip: ws2812@0 {
27+
compatible = "worldsemi,ws2812-spi";
28+
29+
/* SPI */
30+
reg = <0>; /* ignored, but necessary for SPI bindings */
31+
spi-max-frequency = <4000000>;
32+
33+
/* WS2812 */
34+
chain-length = <10>; /* arbitrary; change at will */
35+
spi-one-frame = <0x70>;
36+
spi-zero-frame = <0x40>;
37+
38+
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
39+
};
40+
};
41+
42+
/ {
43+
chosen {
44+
zmk,underglow = &led_strip;
45+
};
46+
};
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#include <dt-bindings/led/led.h>
2+
3+
&pinctrl {
4+
spi3_default: spi3_default {
5+
group1 {
6+
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
7+
};
8+
};
9+
10+
spi3_sleep: spi3_sleep {
11+
group1 {
12+
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
13+
low-power-enable;
14+
};
15+
};
16+
};
17+
18+
&spi3 {
19+
compatible = "nordic,nrf-spim";
20+
status = "okay";
21+
22+
pinctrl-0 = <&spi3_default>;
23+
pinctrl-1 = <&spi3_sleep>;
24+
pinctrl-names = "default", "sleep";
25+
26+
led_strip: ws2812@0 {
27+
compatible = "worldsemi,ws2812-spi";
28+
29+
/* SPI */
30+
reg = <0>; /* ignored, but necessary for SPI bindings */
31+
spi-max-frequency = <4000000>;
32+
33+
/* WS2812 */
34+
chain-length = <10>; /* arbitrary; change at will */
35+
spi-one-frame = <0x70>;
36+
spi-zero-frame = <0x40>;
37+
38+
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
39+
};
40+
};
41+
42+
/ {
43+
chosen {
44+
zmk,underglow = &led_strip;
45+
};
46+
};

boards/shields/lily58/lily58.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Uncomment to enable encoder
2+
# CONFIG_EC11=y
3+
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
4+
5+
# Uncomment the following line to enable the Lily58 OLED Display
6+
# CONFIG_ZMK_DISPLAY=y

boards/shields/lily58/lily58.dtsi

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* Copyright (c) 2020 Pete Johanson
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
#include <dt-bindings/zmk/matrix_transform.h>
8+
9+
#include <layouts/kata0510/lily58.dtsi>
10+
11+
/ {
12+
chosen {
13+
zephyr,display = &oled;
14+
zmk,kscan = &kscan0;
15+
zmk,physical-layout = &kata0510_lily58_layout;
16+
};
17+
18+
default_transform: keymap_transform_0 {
19+
compatible = "zmk,matrix-transform";
20+
columns = <16>;
21+
rows = <5>;
22+
// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 |
23+
// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 |
24+
// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 |
25+
// | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 | SW25 | | SW25 | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 |
26+
// | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 |
27+
map = <
28+
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11)
29+
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11)
30+
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11)
31+
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11)
32+
RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10)
33+
>;
34+
};
35+
36+
kscan0: kscan {
37+
compatible = "zmk,kscan-gpio-matrix";
38+
wakeup-source;
39+
40+
diode-direction = "col2row";
41+
row-gpios
42+
= <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
43+
, <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
44+
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
45+
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
46+
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
47+
;
48+
49+
};
50+
51+
left_encoder: encoder_left {
52+
compatible = "alps,ec11";
53+
a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
54+
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
55+
steps = <80>;
56+
};
57+
58+
sensors: sensors {
59+
compatible = "zmk,keymap-sensors";
60+
sensors = <&left_encoder>;
61+
triggers-per-rotation = <20>;
62+
};
63+
};
64+
65+
&kata0510_lily58_layout {
66+
transform = <&default_transform>;
67+
};
68+
69+
&pro_micro_i2c {
70+
status = "okay";
71+
72+
oled: ssd1306@3c {
73+
compatible = "solomon,ssd1306fb";
74+
reg = <0x3c>;
75+
width = <128>;
76+
height = <32>;
77+
segment-offset = <0>;
78+
page-offset = <0>;
79+
display-offset = <0>;
80+
multiplex-ratio = <31>;
81+
segment-remap;
82+
com-invdir;
83+
com-sequential;
84+
inversion-on;
85+
prechargep = <0x22>;
86+
};
87+
};

boards/shields/lily58/lily58.keymap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Copyright (c) 2020 The ZMK Contributors
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
#include <behaviors.dtsi>
8+
#include <dt-bindings/zmk/keys.h>
9+
#include <dt-bindings/zmk/bt.h>
10+
#include <dt-bindings/zmk/ext_power.h>
11+
12+
/ {
13+
keymap {
14+
compatible = "zmk,keymap";
15+
16+
default_layer {
17+
// ------------------------------------------------------------------------------------------------------------
18+
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
19+
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | - |
20+
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
21+
// | SHIFT | Z | X | C | V | B | "[" | | "]" | N | M | , | . | / | SHIFT |
22+
// | ALT | GUI | LOWER| SPACE | | ENTER | RAISE| BSPC | GUI |
23+
bindings = <
24+
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp GRAVE
25+
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp MINUS
26+
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
27+
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LBKT &kp RBKT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
28+
&kp LALT &kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp BSPC &kp RGUI
29+
>;
30+
31+
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
32+
};
33+
34+
lower_layer {
35+
// ------------------------------------------------------------------------------------------------------------
36+
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
37+
// | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
38+
// | ` | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ~ |
39+
// | | | | | | | | | | | _ | + | { | } | "|" |
40+
// | | | | | | | | | |
41+
bindings = <
42+
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
43+
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
44+
&kp GRAVE &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp TILDE
45+
&trans &ext_power EP_ON &ext_power EP_OFF &ext_power EP_TOG &trans &trans &trans &trans &trans &kp MINUS &kp PLUS &kp LBRC &kp RBRC &kp PIPE
46+
&trans &trans &trans &trans &trans &trans &trans &trans
47+
>;
48+
49+
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
50+
};
51+
52+
raise_layer {
53+
// ------------------------------------------------------------------------------------------------------------
54+
// | | | | | | | | | | | | | |
55+
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
56+
// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | v | ^ | -> | |
57+
// | F7 | F8 | F9 | F10 | F11 | F12 | | | | + | - | = | [ | ] | \ |
58+
// | | | | | | | | | |
59+
bindings = <
60+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
61+
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
62+
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
63+
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &trans &kp KP_PLUS &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH
64+
&trans &trans &trans &trans &trans &trans &trans &trans
65+
>;
66+
67+
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
68+
};
69+
};
70+
};

boards/shields/lily58/lily58.zmk.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
file_format: "1"
2+
id: lily58
3+
name: Lily58
4+
type: shield
5+
url: https://github.com/kata0510/Lily58
6+
requires: [pro_micro]
7+
exposes: [i2c_oled]
8+
features:
9+
- keys
10+
- display
11+
- studio
12+
siblings:
13+
- lily58_left
14+
- lily58_right
15+
- lily58_left_peripheral
16+
- lily58_dongle_xiao
17+
- lily58_dongle_pro_micro

0 commit comments

Comments
 (0)