-
Notifications
You must be signed in to change notification settings - Fork 521
Description
Situation: User has BLE mouse (in this case, for Assistive Technology, a gyro head mouse). I'm using a Pi Pico 2W to pair to. What I'd like is for the wired USB side to output Joystick (gamepad) data.
I saw this example, and it works great for Keyboard and Mouse wired USB:
https://learn.adafruit.com/pico-bluetooth-keyboard-bridge/code-the-bluetooth-bridge
But the moment you add <Joystick.h> there are a bunch of "conflicts with previous declaration" errors. Tried doing it with both USB Stack > Pico SDK and (w/o the <Joystick.h>) the TinyUSB stack. (I normally use TinyUSB for my joysticks.)
I need: Input of BLE mouse. Output of wired USB gamepad.
I can get the input of BLE to work. And the Output of wired USB to work. But not together. Any ideas?
This would be useful for folks with disabilities. Since they are using the XBOX Adaptive Controller's USB ports (for left/right stick) this bridging in needed.
Example error:
OneDrive/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/hid/hid.h:87:3: error: 'HID_REPORT_TYPE_INPUT' conflicts with a previous declaration
87 | HID_REPORT_TYPE_INPUT, ///< Input
C:/Users/nelso/AppData/Local/Arduino15/packages/rp2040/hardware/rp2040/5.4.3/pico-sdk/lib/btstack/src/btstack_hid.h:106:5: note: previous declaration 'hid_report_type_t HID_REPORT_TYPE_INPUT'
106 | HID_REPORT_TYPE_INPUT,
I also posted this in the Adafruit forum, since their example got me going on this. :-)