Skip to content

Commit af83601

Browse files
committed
feat: Add physical layout to BDN9 rev2.
1 parent 8267010 commit af83601

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

app/boards/arm/bdn9/bdn9_rev2.dts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <st/f0/stm32f072c(8-b)tx-pinctrl.dtsi>
1010
#include <dt-bindings/led/led.h>
1111

12+
#include <dt-bindings/zmk/matrix_transform.h>
13+
14+
#include <physical_layouts.dtsi>
15+
1216
/ {
1317
model = "Keeb.io BDN9 rev2";
1418
compatible = "keebio,bdn9", "st,stm32f072";
@@ -20,6 +24,38 @@
2024
zmk,underglow = &led_strip;
2125
};
2226

27+
matrix_transform: matrix_transform {
28+
compatible = "zmk,matrix-transform";
29+
30+
compatible = "zmk,matrix-transform";
31+
columns = <3>;
32+
rows = <3>;
33+
map = <
34+
RC(0,0) RC(0,1) RC(0,2)
35+
RC(0,3) RC(0,4) RC(0,5)
36+
RC(0,6) RC(0,7) RC(0,8)
37+
>;
38+
};
39+
40+
physical_layout {
41+
compatible = "zmk,physical-layout";
42+
43+
display-name = "BDN9";
44+
transform = <&matrix_transform>;
45+
46+
keys // w h x y rot rx ry
47+
= <&key_physical_attrs 100 100 0 0 0 0 0>
48+
, <&key_physical_attrs 100 100 100 0 0 0 0>
49+
, <&key_physical_attrs 100 100 200 0 0 0 0>
50+
, <&key_physical_attrs 100 100 0 100 0 0 0>
51+
, <&key_physical_attrs 100 100 100 100 0 0 0>
52+
, <&key_physical_attrs 100 100 200 100 0 0 0>
53+
, <&key_physical_attrs 100 100 0 200 0 0 0>
54+
, <&key_physical_attrs 100 100 100 200 0 0 0>
55+
, <&key_physical_attrs 100 100 200 200 0 0 0>
56+
;
57+
};
58+
2359
kscan: kscan {
2460
compatible = "zmk,kscan-gpio-direct";
2561

0 commit comments

Comments
 (0)