feat(boards): Preonic physical layout

This commit is contained in:
ReFil 2024-09-09 14:10:10 +01:00 committed by Pete Johanson
parent 91e1a7cfef
commit e80b1584de
2 changed files with 17 additions and 2 deletions

View File

@ -9,6 +9,7 @@
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
#include <dt-bindings/zmk/matrix_transform.h>
#include <layouts/common/ortho_5x12/ortho_5x12.dtsi>
/ {
model = "Preonic PCD, rev3";
@ -18,7 +19,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zmk,kscan = &kscan0;
zmk,matrix-transform = &layout_grid_transform;
zmk,physical-layout = &layout_ortho_5x12_all1u;
};
kscan0: kscan_0 {
@ -131,3 +132,18 @@ zephyr_udc0: &usb {
};
};
};
&layout_ortho_5x12_all1u {
status = "okay";
transform = <&layout_grid_transform>;
};
&layout_ortho_5x12_1x2u {
status = "okay";
transform = <&layout_mit_transform>;
};
&layout_ortho_5x12_2x2u {
status = "okay";
transform = <&layout_2x2u_transform>;
};

View File

@ -13,7 +13,6 @@
#define RAISE 2
/ {
chosen { zmk,matrix-transform = &layout_grid_transform; };
keymap {
compatible = "zmk,keymap";
default_layer {