Skip to content

Commit

Permalink
Use fork of badjeff/zmk-pmw3610-driver modified for PMW3360
Browse files Browse the repository at this point in the history
  • Loading branch information
trentrand committed May 17, 2024
1 parent b0f14b0 commit 603e261
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
CONFIG_SPI=y
CONFIG_INPUT=y
CONFIG_ZMK_MOUSE=y

CONFIG_PMW33XX=y
CONFIG_PMW33XX_3360=y
CONFIG_PMW33XX_TRIGGER_GLOBAL_THREAD=y
CONFIG_PMW3360=y
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "dactyl_manuform_5x7.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>

&default_transform {
col-offset = <7>;
Expand Down Expand Up @@ -43,23 +44,24 @@
};
};

&spi1 {
&spi0 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
label = "SPI_1";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;

trackball: trackball@0 {
status = "okay";
compatible = "pixart,pmw33xx";
compatible = "pixart,pmw3360";
reg = <0x0>;
spi-max-frequency = <2000000>;
label = "TRACKBALL";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cpi = <1600>;
motswk-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
evt-type = <INPUT_EV_REL>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
};
};

Expand Down
7 changes: 6 additions & 1 deletion config/west.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/petejohanson
- name: pmw3360-driver
url-base: https://github.com/trentrand
projects:
- name: zmk
remote: zmkfirmware
revision: main
revision: feat/pointers-move-scroll
import: app/west.yml
- name: zmk-pmw3360-driver
remote: pmw3360-driver
revision: main
self:
path: config

0 comments on commit 603e261

Please sign in to comment.