Skip to content

Commit caa4344

Browse files
committed
test
1 parent 06ddb92 commit caa4344

26 files changed

Lines changed: 703 additions & 358 deletions

.github/workflows/draw-keymaps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
paths:
77
- "config/*.keymap"
88
- "config/*.dtsi"
9-
- "keymap-drawer/config.yaml"
9+
- "tools/keymap-drawer/config.yaml"
1010

1111
jobs:
1212
draw:
@@ -15,6 +15,6 @@ jobs:
1515
contents: write
1616
with:
1717
keymap_patterns: 'config/*.keymap'
18-
config_path: keymap-drawer/config.yaml
19-
output_folder: keymap-drawer
18+
config_path: tools/keymap-drawer/config.yaml
19+
output_folder: tools/keymap-drawer
2020
amend_commit: true

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<img width="600" height="600" alt="Ferris sweep" src="https://github.com/user-attachments/assets/b81f97ac-0166-47d5-a392-54801568a16a" />
55
</p>
66

7-
87
My personal keymap for the Ferris Sweep using [ZMK](https://zmk.dev/), drawn with [keymap-drawer](https://github.com/caksoylar/keymap-drawer).
98

109
## 🧠 Design Philosophy
@@ -31,5 +30,5 @@ My personal keymap for the Ferris Sweep using [ZMK](https://zmk.dev/), drawn wit
3130
## 🖼️ Layer Map
3231

3332
<p align="center">
34-
<img src="./keymap-drawer/cradio.svg" alt="My personal keymap" width="1024">
33+
<img src="./tools/keymap-drawer/cradio.svg" alt="My personal keymap" width="1024">
3534
</p>

build.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include:
2+
# sweep
23
- board: nice_nano_v2
34
shield: cradio_left
45
artifact-name: sweep_left_peripheral
@@ -16,6 +17,28 @@ include:
1617
snippet: studio-rpc-usb-uart
1718
artifact-name: sweep_dongle
1819
cmake-args: -DCONFIG_ZMK_STUDIO=y
20+
21+
# urchin
22+
- board: seeeduino_xiao_ble
23+
shield: urchin_dongle
24+
snippet: studio-rpc-usb-uart
25+
cmake-args: -DCONFIG_ZMK_STUDIO=y
26+
- board: nice_nano_v2
27+
shield: urchin_left
28+
artifact-name: urchin_left_peripheral
29+
cmake-args: -DCONFIG_ZMK_SPLIT=y -DCONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
30+
- board: nice_nano_v2
31+
artifact-name: urchin_left_central
32+
shield: urchin_left
33+
snippet: studio-rpc-usb-uart
34+
cmake-args: -DCONFIG_ZMK_SPLIT=y -DCONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
1935
- board: nice_nano_v2
20-
artifact-name: settings_reset
36+
artifact-name: urchin_right
37+
shield: urchin_right
38+
cmake-args: -DCONFIG_ZMK_SPLIT=y -DCONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
39+
40+
# reset shields
41+
- board: nice_nano_v2
42+
shield: settings_reset
43+
- board: seeeduino_xiao_ble
2144
shield: settings_reset

config/boards/shields/cradio_dongle/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if SHIELD_CRADIO_DONGLE
22

33
config ZMK_KEYBOARD_NAME
4-
default "Smaili"
4+
default "Sweep"
55

66
config ZMK_SPLIT_ROLE_CENTRAL
77
default y

config/boards/shields/cradio_dongle/Kconfig.shield

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (c) 2020 The ZMK Contributors
2-
# SPDX-License-Identifier: MIT
3-
41
config SHIELD_CRADIO_LEFT
52
def_bool $(shields_list_contains,cradio_left)
63

config/boards/shields/cradio_dongle/cradio_dongle.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y
22
CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2
33

44
CONFIG_ZMK_SLEEP=n
5+
6+
# Enable zmk studio
7+
CONFIG_ZMK_STUDIO=y
8+
9+
#Improve connection stability
10+
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
if SHIELD_URCHIN_DONGLE
2+
3+
config ZMK_KEYBOARD_NAME
4+
default "Urchin"
5+
6+
config ZMK_SPLIT_ROLE_CENTRAL
7+
default y
8+
9+
config ZMK_USB
10+
default y
11+
12+
endif
13+
14+
if SHIELD_URCHIN_LEFT || SHIELD_URCHIN_RIGHT || SHIELD_URCHIN_DONGLE
15+
16+
config ZMK_SPLIT
17+
default y
18+
19+
config ZMK_BLE
20+
default y
21+
22+
endif
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
config SHIELD_URCHIN_LEFT
2+
def_bool $(shields_list_contains,urchin_left)
3+
4+
config SHIELD_URCHIN_RIGHT
5+
def_bool $(shields_list_contains,urchin_right)
6+
7+
config SHIELD_URCHIN_DONGLE
8+
def_bool $(shields_list_contains,urchin_dongle)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2022 Duccio Breschi
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
#include <dt-bindings/zmk/matrix_transform.h>
8+
9+
#include "urchin-layouts.dtsi"
10+
11+
&default_layout {
12+
transform = <&default_transform>;
13+
};
14+
15+
/ {
16+
chosen {
17+
zmk,kscan = &kscan0;
18+
zmk,physical-layout = &default_layout;
19+
};
20+
21+
default_transform: keymap_transform_0 {
22+
compatible = "zmk,matrix-transform";
23+
columns = <10>;
24+
rows = <4>;
25+
26+
map = <
27+
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)
28+
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)
29+
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)
30+
RC(3,3) RC(3,4) RC(3,5) RC(3,6)
31+
>;
32+
};
33+
34+
kscan0: kscan {
35+
compatible = "zmk,kscan-gpio-matrix";
36+
wakeup-source;
37+
};
38+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y
2+
CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2
3+
4+
CONFIG_ZMK_SLEEP=n
5+
6+
# Enable zmk studio
7+
CONFIG_ZMK_STUDIO=y
8+
9+
#Improve connection stability
10+
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y

0 commit comments

Comments
 (0)