Skip to content

Commit

Permalink
Actual pmw3610
Browse files Browse the repository at this point in the history
  • Loading branch information
bullwinkle3000 committed Jan 13, 2024
1 parent e52e499 commit 6e035e4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
30 changes: 16 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions config/boards/shields/wyld_dm/wyld_dm_left.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ CONFIG_ZMK_MOUSE=y
CONFIG_SPI=y
CONFIG_INPUT=y

CONFIG_PMW3360=y
CONFIG_PMW3360_CPI=1600
CONFIG_PMW3360_CPI_DIVIDOR=4
CONFIG_PMW3360_ORIENTATION_0=y

CONFIG_PMW3610=y
#enable experimental bluetooth behaviors
#CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y

Expand Down
8 changes: 4 additions & 4 deletions config/boards/shields/wyld_dm/wyld_dm_left.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 8)>, // 1.8
<NRF_PSEL(SPIM_MOSI, 0, 11)>, // 0.11
<NRF_PSEL(SPIM_MISO, 0, 26)>; // 0.26
<NRF_PSEL(SPIM_MISO, 0, 11)>; // 0.11
};
};

blackpill_spi_sleep: blackpill_spi_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 8)>, // 1.8
<NRF_PSEL(SPIM_MOSI, 0, 11)>, // 0.11
<NRF_PSEL(SPIM_MISO, 0, 26)>; // 0.26
<NRF_PSEL(SPIM_MISO, 0, 11)>; // 0.11
low-power-enable;
};
};
Expand All @@ -63,10 +63,10 @@
pinctrl-1 = <&blackpill_spi_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;

`
trackball: trackball@0 {
status = "okay";
compatible = "pixart,pmw3360";
compatible = "pixart,pmw3610";
reg = <0>;
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 24 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
Expand Down
8 changes: 4 additions & 4 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/petejohanson
- name: bullwinkle3000
url-base: https://github.com/bullwinkle3000
- name: inorichi
url-base: https://github.com/inorichi
projects:
- name: zmk
remote: zmkfirmware
revision: feat/pointers-move-scroll
import: app/west.yml
- name: zmk-pmw3610-driver
remote: bullwinkle3000
revision: pmw3360
remote: inorichi
revision: main
self:
path: config

0 comments on commit 6e035e4

Please sign in to comment.