mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
feat(shields): Add tester_xiao layouts Added two layouts for the XIAO tester shield: - Keys arranged to match the XIAO pinout, viewed from the front - Single row of eleven keys These layouts are abstractions since the tester_xiao shield may be used in a situation where the "keys" are actually jumper wires on a breadboard or the like. feat(shields): Add tester_pro_micro layouts Added two layouts for the Pro Micro tester shield: - Keys arranged to match the Pro Micro pinout, viewed from the front - Single row of eighteen keys
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
#include <dt-bindings/zmk/matrix_transform.h>
|
|
#include "tester_xiao-layouts.dtsi"
|
|
|
|
&physical_layout0 {
|
|
transform = <&transform0>;
|
|
};
|
|
|
|
&physical_layout1 {
|
|
transform = <&transform0>;
|
|
};
|
|
|
|
/ {
|
|
chosen {
|
|
zmk,kscan = &kscan0;
|
|
zmk,physical-layout = &physical_layout0;
|
|
};
|
|
|
|
kscan0: kscan {
|
|
compatible = "zmk,kscan-gpio-direct";
|
|
wakeup-source;
|
|
debounce-press-ms = <10>;
|
|
debounce-release-ms = <10>;
|
|
input-gpios
|
|
= <&xiao_d 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
, <&xiao_d 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
|
;
|
|
};
|
|
|
|
transform0: keymap_transform {
|
|
compatible = "zmk,matrix-transform";
|
|
columns = <11>;
|
|
rows = <1>;
|
|
map = <
|
|
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)
|
|
>;
|
|
};
|
|
};
|