Skip to content

rafgaj/Gamepad-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamepad-buttons

Description

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.

This is an image This is an image

The code was created for the needs of additional buttons mounted on the VR headset - HP Reverb G2 made according to the instructions.

Pre-work with the microcontroller

  1. Installing CircuitPython on the microcontroller according the instruction.

  2. 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.

Programming the microcontroller

Copy the files: boot.py, hid_gamepad.py and code.py onto the CIRCUITPY directly. Reconnect device and should works.