mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
feat(boards): Planck physical layout
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
#include <layouts/common/ortho_4x12/ortho_4x12.dtsi>
|
||||
|
||||
|
||||
/ {
|
||||
model = "Plack PCD, rev6";
|
||||
compatible = "planck,rev6", "st,stm32f303";
|
||||
@@ -17,7 +20,7 @@
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zmk,kscan = &kscan0;
|
||||
zmk,matrix-transform = &layout_grid_transform;
|
||||
zmk,physical-layout = &layout_ortho_4x12_all1u;
|
||||
};
|
||||
|
||||
kscan0: kscan {
|
||||
@@ -137,3 +140,18 @@ zephyr_udc0: &usb {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&layout_ortho_4x12_all1u {
|
||||
status = "okay";
|
||||
transform = <&layout_grid_transform>;
|
||||
};
|
||||
|
||||
&layout_ortho_4x12_1x2u {
|
||||
status = "okay";
|
||||
transform = <&layout_mit_transform>;
|
||||
};
|
||||
|
||||
&layout_ortho_4x12_2x2u {
|
||||
status = "okay";
|
||||
transform = <&layout_2x2u_transform>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user