Skip to content

Commit

Permalink
Update charybdis_left.overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
stylustrader authored Dec 31, 2024
1 parent 49d4f24 commit bf113d3
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions config/boards/shields/charybdis/charybdis_left.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

#include "charybdis.dtsi"

&default_transform {
col-offset = <6>;
};

&five_column_transform {
col-offset = <5>;
};

&kscan0 {
col-gpios
Expand All @@ -24,47 +17,3 @@
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
&pinctrl {
spi0_default: spi0_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
<NRF_PSEL(SPIM_MOSI, 0, 17)>,
<NRF_PSEL(SPIM_MISO, 0, 17)>;
};
};

spi0_sleep: spi0_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
<NRF_PSEL(SPIM_MOSI, 0, 17)>,
<NRF_PSEL(SPIM_MISO, 0, 17)>;
low-power-enable;
};
};
};

// For the left side overlay
&spi0 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
trackball_left: trackball_left@0 {
status = "okay";
compatible = "pixart,pmw3610";
reg = <0>;
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
scroll-layers = <5>;
zmk,left-side; // Add this line to indicate it's the left trackball
};
};
/ {
trackball_listener_left {
compatible = "zmk,input-listener";
device = <&trackball_left>;
side = "left"; // Add this line
};
};

0 comments on commit bf113d3

Please sign in to comment.