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 7dc633b..c01c7d0 100644 --- a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf +++ b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.conf @@ -1,5 +1,6 @@ CONFIG_SPI=y CONFIG_INPUT=y CONFIG_ZMK_MOUSE=y -CONFIG_PMW3360=y -CONFIG_PMW3360_LOG_LEVEL_DBG=y +CONFIG_SENSOR=y +CONFIG_SENSOR_LOG_LEVEL_DBG=y +CONFIG_PMW3610=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 b87a04e..2ba63d7 100644 --- a/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay +++ b/boards/shields/dactyl_manuform_5x7/dactyl_manuform_5x7_right.overlay @@ -7,67 +7,60 @@ &kscan0 { row-gpios - = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - ; + = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, + <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, + <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, + <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, + <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; col-gpios - = <&gpio0 29 GPIO_ACTIVE_HIGH> - , <&gpio0 2 GPIO_ACTIVE_HIGH> - , <&gpio1 15 GPIO_ACTIVE_HIGH> - , <&gpio1 13 GPIO_ACTIVE_HIGH> - , <&gpio1 11 GPIO_ACTIVE_HIGH> - , <&gpio0 10 GPIO_ACTIVE_HIGH> - , <&gpio0 9 GPIO_ACTIVE_HIGH> - ; + = <&gpio0 29 GPIO_ACTIVE_HIGH>, + <&gpio0 2 GPIO_ACTIVE_HIGH>, + <&gpio1 15 GPIO_ACTIVE_HIGH>, + <&gpio1 13 GPIO_ACTIVE_HIGH>, + <&gpio1 11 GPIO_ACTIVE_HIGH>, + <&gpio0 10 GPIO_ACTIVE_HIGH>, + <&gpio0 9 GPIO_ACTIVE_HIGH>; }; &pinctrl { - spi0_default: spi0_default { + spi1_default_alt: spi1_default_alt { group1 { psels = , - , - ; + , + ; }; }; - spi0_sleep: spi0_sleep { + spi1_sleep_alt: spi1_sleep_alt { group1 { psels = , - , - ; + , + ; low-power-enable; }; }; }; -&spi0 { +&spi1 { status = "okay"; compatible = "nordic,nrf-spim"; - pinctrl-0 = <&spi0_default>; - pinctrl-1 = <&spi0_sleep>; + pinctrl-0 = <&spi1_default_alt>; + pinctrl-1 = <&spi1_sleep_alt>; pinctrl-names = "default", "sleep"; cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - trackball: trackball@0 { - status = "okay"; - compatible = "pixart,pmw3360"; + pmw3610: pmw3610@0 { + compatible = "pixart,pmw3610"; reg = <0>; - spi-max-frequency = <2000000>; irq-gpios = <&gpio0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; - cpi = <1600>; - evt-type = ; - x-input-code = ; - y-input-code = ; + spi-max-frequency = <2000000>; }; }; / { trackball_listener { compatible = "zmk,input-listener"; - device = <&trackball>; + device = <&pmw3610>; }; }; diff --git a/boards/shields/dactyl_manuform_5x7/mouse.dtsi b/boards/shields/dactyl_manuform_5x7/mouse.dtsi index fafca5f..e69de29 100644 --- a/boards/shields/dactyl_manuform_5x7/mouse.dtsi +++ b/boards/shields/dactyl_manuform_5x7/mouse.dtsi @@ -1 +0,0 @@ -#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10 diff --git a/config/dactyl_manuform_5x7.conf b/config/dactyl_manuform_5x7.conf index 26f7a1c..95a7fb7 100644 --- a/config/dactyl_manuform_5x7.conf +++ b/config/dactyl_manuform_5x7.conf @@ -14,12 +14,9 @@ CONFIG_BT_BUF_ACL_TX_COUNT=32 CONFIG_BT_L2CAP_TX_BUF_COUNT=32 CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y -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=2000 CONFIG_LOG=y CONFIG_LOG_DEFAULT_LEVEL=4 -CONFIG_PM=y diff --git a/config/west.yml b/config/west.yml index 61734f7..b34488c 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