https://github.com/gdsports/gamepad_tinyusb
USB Gamepad/Joystick example using Adafruit TinyUSB
https://github.com/gdsports/gamepad_tinyusb
adafruit arduino nrf52840 samd tinyusb usb-gamepad usb-joystick
Last synced: 10 months ago
JSON representation
USB Gamepad/Joystick example using Adafruit TinyUSB
- Host: GitHub
- URL: https://github.com/gdsports/gamepad_tinyusb
- Owner: gdsports
- License: mit
- Created: 2021-01-21T02:30:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-21T02:42:18.000Z (about 5 years ago)
- Last Synced: 2025-03-23T21:35:43.169Z (11 months ago)
- Topics: adafruit, arduino, nrf52840, samd, tinyusb, usb-gamepad, usb-joystick
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gamepad Example for Adafruit TinyUSB
I did not see a TinyUSB gamepad/joystick example so I wrote one. Be sure to set
the USB Stack to TinyUSB.
The example works on Adafruit SAMD (tested with an ItsyBitsy M0), Seeeduino
SAMD (tested on XIAO), and Adafruit nRF52840 (not tested but it compiles).
This produces a USB composite device with HID gamepad and CDC ACM port. An
ItsyBitsy M0 running this example works on an XAC so removing the CDC ACM port
is optional.
If the CDC ACM port must be removed, the changes are described
[here](https://github.com/adafruit/Adafruit_TinyUSB_ArduinoCore/issues/19).
Patching is the only option for now.
Similar patches are needed if using the Seeeduino SAMD or the Adafruit nRF52
board packages.