Skip to content

Commit

Permalink
add matrix transform
Browse files Browse the repository at this point in the history
  • Loading branch information
onnenon committed Nov 12, 2024
1 parent c7d8891 commit 600ddb6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boards/shields/hotdog_pad/hotdog_pad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@

#include "hotdog_pad-layouts.dtsi"

&physical_layout0 {
transform = <&matrix_transform0>;
};

/ {
chosen {
zmk,kscan = &kscan0;
zmk,physical-layout = &physical_layout0;
};

matrix_transform0: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <5>;
rows = <1>;
map = <RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4)>;
};

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-direct";

Expand Down

0 comments on commit 600ddb6

Please sign in to comment.