From d9d19b1aa4860bc3d4e50a87eecd98a0d22c7b3d Mon Sep 17 00:00:00 2001 From: MURAOKA Taro Date: Mon, 11 Apr 2022 18:44:44 +0900 Subject: [PATCH] use correct clock to communicate with PMW3360 sensor --- qmk_firmware/keyboards/keyball/drivers/pmw3360/pmw3360.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmk_firmware/keyboards/keyball/drivers/pmw3360/pmw3360.c b/qmk_firmware/keyboards/keyball/drivers/pmw3360/pmw3360.c index d2127b0f1..92d096578 100644 --- a/qmk_firmware/keyboards/keyball/drivers/pmw3360/pmw3360.c +++ b/qmk_firmware/keyboards/keyball/drivers/pmw3360/pmw3360.c @@ -20,7 +20,7 @@ along with this program. If not, see . #define PMW3360_SPI_MODE 3 #define PMW3360_SPI_DIVISOR (F_CPU / PMW3360_CLOCKS) -#define PMW3360_CLOCKS 70000000 +#define PMW3360_CLOCKS 2000000 bool pmw3360_spi_start(void) { return spi_start(PMW3360_NCS_PIN, false, PMW3360_SPI_MODE, PMW3360_SPI_DIVISOR);