Both the native and PIO USB ports can be host and device, depending on cabling.
- As host, pass-thorough the received mouse report to the upstream.
- As device, when the switch on GP3 pressed, mouse move to -x direction when Native USB is connected to upstream, +x direction when PIO is connected to upstream.
See PDF
Plus, a switch between GND and GP3.
mkdir build
cd build
cmake ..
make
Who wrote host_cdc_hid_msc example on pico-examples.
Who wrote usb_device example on Pico-PIO-USB.
Who combined two examples above, and who made wiring pdf.