HID game controller with 6 buttons. Built on the basis of the "Seeed Studio XIAO SAMD21" microcontroller and programmed in CircuitPython. Visible to the system as Game Controller with 6 buttons.
The code was created for the needs of additional buttons mounted on the VR headset - HP Reverb G2 made according to the instructions.
-
Installing CircuitPython on the microcontroller according the instruction.
-
Add CircuitPython library files. Can be download from the official libraries on the CircuitPython website. Required libriaries are:
- /adafruit_bus_device
- /adafruit_hid
- adafruit_debouncer.mpy
- adafruit_ticks.mpy
- simpleio.mpy
Unzip downloaded library file and copy required files onto the CIRCUITPY drive into the /lib directory.
Note: The libraries are included in the release files but may be out of date. If you don't care about the latest versions, you can skip this step.
Copy the files: boot.py, hid_gamepad.py and code.py onto the CIRCUITPY directly. Reconnect device and should works.