From b3824628217422f2de15a410dcba96dfe5824051 Mon Sep 17 00:00:00 2001 From: Erik Trinkle Date: Sat, 20 Jan 2024 07:05:11 -0500 Subject: [PATCH] add basic trackball support --- keyboards/cyboard/config.h | 9 +++++++++ keyboards/cyboard/rules.mk | 3 +++ 2 files changed, 12 insertions(+) diff --git a/keyboards/cyboard/config.h b/keyboards/cyboard/config.h index 5aeb4a3d736..411f818e7de 100644 --- a/keyboards/cyboard/config.h +++ b/keyboards/cyboard/config.h @@ -36,3 +36,12 @@ #define VIAL_UNLOCK_COMBO_COLS { 3, 4 } #define DYNAMIC_KEYMAP_LAYER_COUNT 10 + +//trackball support +#define SPI_DRIVER SPID0 +#define SPI_SCK_PIN GP22 +#define SPI_MISO_PIN GP20 +#define SPI_MOSI_PIN GP23 +#define POINTING_DEVICE_CS_PIN GP21 +#define POINTING_DEVICE_INVERT_X +#define PMW3360_CPI 500 \ No newline at end of file diff --git a/keyboards/cyboard/rules.mk b/keyboards/cyboard/rules.mk index 161ec22b16e..7dd03ef6172 100644 --- a/keyboards/cyboard/rules.mk +++ b/keyboards/cyboard/rules.mk @@ -1 +1,4 @@ SERIAL_DRIVER = vendor + +POINTING_DEVICE_ENABLE = yes +POINTING_DEVICE_DRIVER = pmw3360 \ No newline at end of file