From bb27ca45487335c15dd016b9e0b85faa0c519dd4 Mon Sep 17 00:00:00 2001 From: Trent Rand Date: Fri, 17 May 2024 21:15:55 -0700 Subject: [PATCH] Enable debugging for PMW3360 driver --- .../dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf | 1 + .../dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay | 2 +- config/dactyl_manuform_5x7.conf | 6 +++++- config/west.yml | 6 +++--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf index c4114d9..7dc633b 100644 --- a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf +++ b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf @@ -2,3 +2,4 @@ CONFIG_SPI=y CONFIG_INPUT=y CONFIG_ZMK_MOUSE=y CONFIG_PMW3360=y +CONFIG_PMW3360_LOG_LEVEL_DBG=y diff --git a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay index d16795d..b87a04e 100644 --- a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay +++ b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay @@ -55,7 +55,7 @@ trackball: trackball@0 { status = "okay"; compatible = "pixart,pmw3360"; - reg = <0x0>; + reg = <0>; spi-max-frequency = <2000000>; irq-gpios = <&gpio0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; cpi = <1600>; diff --git a/config/dactyl_manuform_5x7.conf b/config/dactyl_manuform_5x7.conf index e25ee89..26f7a1c 100644 --- a/config/dactyl_manuform_5x7.conf +++ b/config/dactyl_manuform_5x7.conf @@ -18,4 +18,8 @@ CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y CONFIG_ZMK_BEHAVIORS_QUEUE_SIZE=512 -CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=8000 +CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=2000 + +CONFIG_LOG=y +CONFIG_LOG_DEFAULT_LEVEL=4 +CONFIG_PM=y diff --git a/config/west.yml b/config/west.yml index b34488c..61734f7 100644 --- a/config/west.yml +++ b/config/west.yml @@ -5,12 +5,12 @@ manifest: - name: pmw3360-driver url-base: https://github.com/trentrand projects: + - name: zmk-pmw3360-driver + remote: pmw3360-driver + revision: main - name: zmk remote: zmkfirmware revision: feat/pointers-move-scroll import: app/west.yml - - name: zmk-pmw3360-driver - remote: pmw3360-driver - revision: main self: path: config