Files
zmk/app/boards/shields/zmk_uno/zmk_uno_split.dtsi
Pete Johanson 147c340c6e Feature: Full-Duplex Wired Split (#2766)
refactor(split): Refactor split code for extension

Extract central/peripheral code to allow for plugging in alternate
transports, instead of tying all split logic to BT.

feat(split): Add full-duplex wired split support

* Depends on full-duplex hardware UART for communication.
* Supports all existing central commands/peripheral events, including
  sensors/inputs from peripherals.
* Only one wired split peripheral supported (for now)
* Relies on chosen `zmk,split-uart` referencing the UART device.

docs: Add wired split config docs.

Migrate split to its own dedicated config file, and add details
on wired split config.

Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com>

fix: Properly override stack size on RP2040

Move the system work queue stack size override on RP2040 ouf of
a `ZMK_BLE` conditional so it is properly applied generally for that
SoC.

---------

Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com>
2025-03-18 02:48:32 -04:00

79 lines
1.6 KiB
Plaintext

/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include "zmk_uno.dtsi"
#include "zmk_uno_split-layouts.dtsi"
left_encoder: &encoder {
status = "disabled";
};
&arduino_serial {
status = "okay";
};
/ {
chosen {
zmk,physical-layout = &split_matrix_physical_layout;
};
wired_split {
compatible = "zmk,wired-split";
device = <&arduino_serial>;
};
split_matrix_transform: split_matrix_transform {
compatible = "zmk,matrix-transform";
rows = <4>;
columns = <2>;
map = <
RC(0,0) RC(0,1)
RC(1,0) RC(1,1)
RC(3,0) RC(3,1)
RC(4,0) RC(4,1)
>;
};
split_direct_matrix_transform: split_direct_matrix_transform {
compatible = "zmk,matrix-transform";
rows = <2>;
columns = <4>;
map = <
RC(0,0) RC(0,1)
RC(0,2) RC(0,3)
RC(1,0) RC(1,1)
RC(1,2) RC(1,3)
>;
};
right_encoder: right_encoder {
steps = <80>;
status = "disabled";
compatible = "alps,ec11";
a-gpios = <&arduino_header 15 GPIO_PULL_UP>;
b-gpios = <&arduino_header 14 GPIO_PULL_UP>;
};
sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder &right_encoder>;
triggers-per-rotation = <20>;
};
};
&split_matrix_physical_layout {
kscan = <&kscan_matrix>;
transform = <&split_matrix_transform>;
};
&split_direct_physical_layout {
kscan = <&kscan_direct>;
transform = <&split_direct_matrix_transform>;
};