Replies: 1 comment 4 replies
-
moved to discussion since this is not bug, it is how the code is written to do. the hid controller example code say clearly it will only work with PS4 dualshock. Like other hid, to universally work with all devices, you need to either
The code is just an example for how to do the later. If you want to make it work with other specific device, you have to add your own code to handle it and submit PR if you want to help others. I only have PS4 controller and have no plan to add anything else. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Operating System
Others
Board
Raspberry Pi Pico (RP2040)
Firmware
examples/host/hid_controller
Cloned from current tinyusb 'head' on August 25
Used in conjunction with current release of pico-sdk (1.2.0)
What happened ?
Tested with 2 controllers; results are as follows:
Hori HORIPAD mini4 was enumerated/identified as VID = 0f0d, PID = 00ee, but example did not respond to any controller actions or button presses
-> Modifying src/hid_app.c ( function 'is_sony_ds4()' ) to compare against the HORI HORIPAD mini4's VID/PID (0f0d & 00ee as mentioned above) solved the issue, and compatibility was confirmed. Perhaps this VID/PID explicit check is not the best design for this example; perhaps a compatibility warning in the log output or an alternate 'minimal' implementation (if possible) would be more helpful. At least a message in the output to tell the user that no output should be expected if the controller is not in a compatibility list.
8BitDo SN30 pro was not initially enumerated, and did not respond to any controller actions or button presses.
PANIC was seen when used with a 'LOG=3' version of the example code.
How to reproduce ?
(For 8BitDo controller failure)
Run example after loading into the microcontroller board
The "TinyUSB Host HID Controller Example" title appears, and after about 5 seconds, "PANIC" appears.
Even when compiled with LOG=3, no useful log information was available.
Debug Log
8bitdo_log3.log
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions