Update boards definition

This commit is contained in:
2026-02-21 11:21:07 +01:00
parent 8e1872ed5f
commit 783be78022
14 changed files with 137 additions and 87 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
name: Build ZMK firmware
on: [push, pull_request, workflow_dispatch]
jobs:
build:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@v0.3
-2
View File
@@ -5,8 +5,6 @@ pcb/fp-info-cache
pcb/_*
pcb/~*
modules
zephyr
!zephyr/module.yml
zmk
.west
build
@@ -6,6 +6,15 @@ config ZMK_KEYBOARD_NAME
config ZMK_SPLIT_ROLE_CENTRAL
default y
config ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS
default 1
config BT_MAX_CONN
default 6
config BT_MAX_PAIRED
default 6
endif
if SHIELD_ABYSS_LEFT || SHIELD_ABYSS_RIGHT
+42
View File
@@ -0,0 +1,42 @@
#include <physical_layouts.dtsi>
/ {
physical_layout_abyss: physical_layout_abyss {
compatible = "zmk,physical-layout";
display-name = "abyss";
keys // w h x y rot rx ry
= <&key_physical_attrs 100 100 100 25 0 0 0>
, <&key_physical_attrs 100 100 200 0 0 0 0>
, <&key_physical_attrs 100 100 300 50 0 0 0>
, <&key_physical_attrs 100 100 400 100 0 0 0>
, <&key_physical_attrs 100 100 1053 25 0 0 0>
, <&key_physical_attrs 100 100 953 0 0 0 0>
, <&key_physical_attrs 100 100 853 50 0 0 0>
, <&key_physical_attrs 100 100 753 100 0 0 0>
, <&key_physical_attrs 100 100 100 125 0 0 0>
, <&key_physical_attrs 100 100 200 100 0 0 0>
, <&key_physical_attrs 100 100 300 150 0 0 0>
, <&key_physical_attrs 100 100 400 200 0 0 0>
, <&key_physical_attrs 100 100 1053 125 0 0 0>
, <&key_physical_attrs 100 100 953 100 0 0 0>
, <&key_physical_attrs 100 100 853 150 0 0 0>
, <&key_physical_attrs 100 100 753 200 0 0 0>
, <&key_physical_attrs 100 100 100 225 0 0 0>
, <&key_physical_attrs 100 100 200 200 0 0 0>
, <&key_physical_attrs 100 100 300 250 0 0 0>
, <&key_physical_attrs 100 100 453 382 700 503 432>
, <&key_physical_attrs 100 100 1053 225 0 0 0>
, <&key_physical_attrs 100 100 953 200 0 0 0>
, <&key_physical_attrs 100 100 853 250 0 0 0>
, <&key_physical_attrs 100 100 700 382 (-700) 750 432>
, <&key_physical_attrs 100 100 0 175 0 0 0>
, <&key_physical_attrs 100 100 0 275 0 0 0>
, <&key_physical_attrs 100 100 250 375 0 0 0>
, <&key_physical_attrs 100 100 350 375 0 0 0>
, <&key_physical_attrs 100 100 1153 175 0 0 0>
, <&key_physical_attrs 100 100 1153 275 0 0 0>
, <&key_physical_attrs 100 100 903 375 0 0 0>
, <&key_physical_attrs 100 100 803 375 0 0 0>
;
};
};
@@ -1,20 +1,8 @@
#include "abyss-layouts.dtsi"
#include <dt-bindings/zmk/matrix_transform.h>
/ {
chosen {
zmk,physical-layout = &physical_layout;
zmk,kscan = &kscan0;
zmk,matrix-transform = &default_transform;
};
physical_layout: physical_layout_0 {
compatible = "zmk,physical-layout";
display-name = "Default Layout";
kscan = <&kscan0>;
transform = <&default_transform>;
};
default_transform: keymap_transform_0 {
matrix_transform0: matrix_transform0 {
compatible = "zmk,matrix-transform";
columns = <8>;
rows = <4>;
@@ -25,15 +13,8 @@
RC(3,2) RC(3,3) RC(2,3) RC(2,7) RC(3,7) RC(3,6)
>;
};
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";
};
};
&xiao_serial {
status = "disabled";
&physical_layout_abyss {
transform = <&matrix_transform0>;
};
+28
View File
@@ -0,0 +1,28 @@
#include "abyss.dtsi"
/ {
kscan0: kscan0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
wakeup-source;
col-gpios
= <&xiao_d 3 GPIO_ACTIVE_HIGH>
, <&xiao_d 4 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 6 GPIO_ACTIVE_HIGH>
;
row-gpios
= <&xiao_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};
&physical_layout_abyss {
kscan = <&kscan0>;
};
+32
View File
@@ -0,0 +1,32 @@
#include "abyss.dtsi"
/ {
kscan0: kscan0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
wakeup-source;
col-gpios
= <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 8 GPIO_ACTIVE_HIGH>
, <&xiao_d 7 GPIO_ACTIVE_HIGH>
;
row-gpios
= <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};
&matrix_transform0 {
col-offset = <4>;
};
&physical_layout_abyss {
kscan = <&kscan0>;
};
+15 -8
View File
@@ -18,11 +18,18 @@
#
---
include:
- board: xiao_ble
shield: abyss_left
- board: xiao_ble
shield: abyss_right
- board: xiao_ble
shield: settings_reset
- board: xiao_ble
shield: tester_xiao
- board: seeeduino_xiao_ble
shield: abyss_left
# to suport zmk studio uncomment those
# - board: seeeduino_xiao_ble
# shield: abyss_left
# snippet: studio-rpc-usb-uart
# cmake-args: -DCONFIG_ZMK_STUDIO=y
# artifact-name: abyss_left_with_studio
- board: seeeduino_xiao_ble
shield: abyss_right
- board: seeeduino_xiao_ble
shield: settings_reset
+1 -1
View File
@@ -158,7 +158,7 @@
//├─────────────┼─────────────┼─────────────┼─────────────┼──────────────╯ ╰───────────────┼───────────────┼─────────────┼─────────────┼─────────────┤
&kp SQT &kp Q &kp J &kp K &kp M &kp W &kp V &kp L
//╰───────────────────────────┼─────────────┼─────────────┼──────────────╮ ╭───────────────┼───────────────┼─────────────┼───────────────────────────╯
&left_tab &lt_spc SY 0 &ltsk OT RSHIFT &ltsk OT RSHIFT &lt_bspc SY 0 &up_del
&left_tab &lt_spc SY 0 &ltsk OT RSHIFT &ltsk OT RSHIFT &lt_bspc SY 0 &up_del
// ╰─────────────┴─────────────┴──────────────╯ ╰───────────────┴───────────────┴─────────────╯
>;
};
-11
View File
@@ -1,11 +0,0 @@
file_format: "1"
id: abyss
name: abyss
type: shield
url: https://github.com/zoriya/abyss
requires: [xiao_ble]
features:
- keys
siblings:
- abyss_left
- abyss_right
@@ -1,18 +0,0 @@
#include "abyss.dtsi"
&kscan0 {
row-gpios
= <&xiao_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
col-gpios
= <&xiao_d 3 GPIO_ACTIVE_HIGH>
, <&xiao_d 4 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 6 GPIO_ACTIVE_HIGH>
;
};
// vim: ft=dts
@@ -1,23 +0,0 @@
#include "abyss.dtsi"
&default_transform {
col-offset = <4>;
};
&kscan0 {
row-gpios
= <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
col-gpios
= <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 8 GPIO_ACTIVE_HIGH>
, <&xiao_d 7 GPIO_ACTIVE_HIGH>
;
};
// vim: ft=dts
+4
View File
@@ -0,0 +1,4 @@
name: zmk-keyboard-abyss
build:
settings:
board_root: .