Created
November 5, 2023 15:23
-
-
Save idank/f16dc64bdcedf810aec785b216f1c063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------- rules.mk ----------- | |
POINTING_DEVICE_ENABLE = yes | |
POINTING_DEVICE_DRIVER = pimoroni_trackball | |
PS2_MOUSE_ENABLE = yes | |
PS2_ENABLE = yes | |
PS2_DRIVER = vendor | |
----------- config.h ----------- | |
#define SERIAL_USART_TX_PIN GP1 | |
#define MASTER_LEFT | |
#define SPLIT_POINTING_ENABLE | |
#define POINTING_DEVICE_RIGHT | |
#define POINTING_DEVICE_ROTATION_90 | |
// The default streaming mode is flaky and doesn't always work. This setting doesn't seem to affect performance. | |
#define PS2_MOUSE_USE_REMOTE_MODE | |
// Serial uses PIO0, change PS2 to PIO1. | |
#define PS2_PIO_USE_PIO1 | |
#define PS2_MOUSE_INVERT_X | |
#define PS2_MOUSE_INVERT_Y | |
#define PS2_DATA_PIN GP2 | |
#define PS2_CLOCK_PIN GP3 | |
// Start faster when keyboard resets. | |
#define PS2_MOUSE_INIT_DELAY 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment