Skip to content

Commit

Permalink
add basic trackball support
Browse files Browse the repository at this point in the history
  • Loading branch information
RealET committed Jan 20, 2024
1 parent 37fbff0 commit b382462
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions keyboards/cyboard/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions keyboards/cyboard/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
SERIAL_DRIVER = vendor

POINTING_DEVICE_ENABLE = yes
POINTING_DEVICE_DRIVER = pmw3360

0 comments on commit b382462

Please sign in to comment.