Skip to content

Commit

Permalink
Update xiao_flex_v2.dtsi
Browse files Browse the repository at this point in the history
  • Loading branch information
WainingForests authored Mar 2, 2024
1 parent 4713d62 commit 65a4776
Showing 1 changed file with 45 additions and 6 deletions.
51 changes: 45 additions & 6 deletions config/boards/shields/xiao_flex_v2/xiao_flex_v2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,56 @@ RC(6,0) RC(6,1) RC(6,2) RC(6,3) RC(6,4) RC(6,5) RC(6,6) RC(6,7)

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";

diode-direction = "col2row";
row-gpios
= <&xiao_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;

};
};

&xiao_i2c {
status = "disabled";
glidepoint: glidepoint@2a {
compatible = "cirque,pinnacle";
reg = <0x2a>;
status = "disabled";
dr-gpios = <&gpio0 16 (GPIO_ACTIVE_HIGH)>;

sensitivity = "4x";
// sleep;
no-taps;
};
// Rotation config, from Pete
// This will change in the future
// https://discord.com/channels/719497620560543766/845285481888743434/1206407883777114182
input_config {
compatible = "zmk,input-configs";

cirque_config {
device = <&glidepoint>;
xy-swap;
y-invert;
x-invert;
};
};
};

/ {
glidepoint_listener {
compatible = "zmk,input-listener";
device = <&glidepoint>;

xy-swap;
y-invert;
x-invert;
};
};

0 comments on commit 65a4776

Please sign in to comment.