Skip to content

Commit

Permalink
feat(boards): Preonic physical layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Sep 26, 2024
1 parent 7e0aaed commit 93ccea0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 17 additions & 1 deletion app/boards/arm/preonic/preonic_rev3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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_2x1u;
};

kscan0: kscan_0 {
Expand Down Expand Up @@ -131,3 +132,18 @@ zephyr_udc0: &usb {
};
};
};

&layout_ortho_5x12_2x1u {
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>;
};
1 change: 0 additions & 1 deletion app/boards/arm/preonic/preonic_rev3.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define RAISE 2

/ {
chosen { zmk,matrix-transform = &layout_grid_transform; };
keymap {
compatible = "zmk,keymap";
default_layer {
Expand Down

0 comments on commit 93ccea0

Please sign in to comment.