ESP32-S3 Joystick with custom name AND Serial port #21
Replies: 3 comments 1 reply
-
|
Hi Dexter, Since you have 2 USB ports (once with HID option, the other connected by an additional uart chip) I would try using the second USB port for serial output. In regards to the platformio.ini: However, text without white space should work without quotes. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Joystick_ Joystick; Just declare the joystick with the amount of buttons and the axis required Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, The parameters are: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First thank you for the library, this is exactly what I need!
But I could not make it work yet. :( I have an ESP32-S3-WROOM-1 N16R8 with two USB ports. I want it to work as joystick device with a custom name, and also as a Serial comm. device using a single USB cable.
I could make it work as joy / serial composite device on the original name, but as soon as I tried to rename it using your instructions, it totally gone wrong. :( Now I cannot even make it work as a composite device. I am using VSCode, Platformio, Arduino framework.
This is my platformio ini file:
Please note, USBOPTIONS.md said, I have to use
-DUSB_PRODUCT="My Product Name"but this caused compile error as it did not understandMagic. ChatGPT said I have to add extra quotes escaped out to make it to compile. Not sure if it is correct tho.Now I get a bunch of warnings like this:
Anyway, it compiles, it runs, but it does not come up as joystick in windows. Only as Serial comm device. I swear it worked previously, but now it doesn't. Probably after I tried using the custom USB methods in Setup, but not sure. This is my short code:
Do you have any idea what is happening here? Why did it stop working as a composite device?
And most importantly, how can I make it working as Joy + Custom name + Serial port?
Beta Was this translation helpful? Give feedback.
All reactions