diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/pipico/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/config.h new file mode 100644 index 000000000000..4243ecd98358 --- /dev/null +++ b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/config.h @@ -0,0 +1,30 @@ +#pragma once + +// --- Half-Duplex Split Configuration (Single Wire over PIO) --- +// This completely ignores GP0 and handles all RX/TX traffic over GP1 +// #define SOFT_SERIAL_PIN GP1 + +// Handshake & Handedness +#define SPLIT_WATCHDOG_ENABLE +#define EE_HANDS +#define SPLIT_USB_DETECT + +// --- SPI Hardware Configuration --- +#define SPI_SCK_PIN GP10 +#define SPI_MOSI_PIN GP11 +#define SPI_MISO_PIN GP12 +#define PMW3360_CS_PIN GP13 +#define POINTING_DEVICE_CS_PIN GP13 + +// Tell QMK to use the newly enabled SPI1 block +#define SPI_DRIVER SPID1 + +// --- Sensor Axis Rotations --- +#define PMW3360_INVERT_X +#define PMW3360_INVERT_Y +// #define POINTING_DEVICE_ROTATION_90 + +#define VIA_DYNAMIC_KEYMAP_ENABLE +#define VIA_EEPROM_LAYOUT_OPTIONS_ENABLE + +#define USB_ENDPOINT_COUNT 4 \ No newline at end of file diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/pipico/keyboard.json b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/keyboard.json new file mode 100644 index 000000000000..8cf351f52119 --- /dev/null +++ b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/keyboard.json @@ -0,0 +1,23 @@ +{ + "keyboard_name": "Tractyl Manuform(5x6) Pi Pico (r)/ Pi Pico (l)", + "matrix_pins": { + "cols": ["GP15", "GP14", "GP21", "GP20", "GP19", "GP18"], + "rows": ["GP17", "GP16", "GP2", "GP3", "GP4", "GP5"] + }, + "diode_direction": "COL2ROW", + "split": { + "enabled": true, + "soft_serial_pin": "GP0", + "matrix_pins": { + "right": { + "cols": ["GP7", "GP6", "GP5", "GP4", "GP3", "GP2"], + "rows": ["GP21", "GP20", "GP19", "GP18", "GP17", "GP16"] + } + } + }, + "processor": "RP2040", + "bootloader": "rp2040", + "build": { + "lto": true + } +} diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/pipico/rules.mk b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/rules.mk new file mode 100644 index 000000000000..13f192ee23df --- /dev/null +++ b/keyboards/handwired/tractyl_manuform/5x6_right/pipico/rules.mk @@ -0,0 +1,6 @@ +SERIAL_DRIVER = vendor +SPI_DRIVER = vendor +POINTING_DEVICE_DRIVER = pmw3360 + +VIA_ENABLE = yes +VIA_PROTOCOL_VERSION = 12 \ No newline at end of file diff --git a/lib/vial-qmk b/lib/vial-qmk new file mode 160000 index 000000000000..00fc4627cd03 --- /dev/null +++ b/lib/vial-qmk @@ -0,0 +1 @@ +Subproject commit 00fc4627cd038ac9b7e9b8bf2b40b50e9e88aecb