Browse Source

Customize USB vid/pid/manufacturer/product

master
Travis Burtrum 6 months ago
parent
commit
bdf7732a64
2 changed files with 15 additions and 0 deletions
  1. +7
    -0
      hwids/usb.py
  2. +8
    -0
      platformio.ini

+ 7
- 0
hwids/usb.py View File

@ -0,0 +1,7 @@
Import("env")
board_config = env.BoardConfig()
# should be array of VID:PID pairs
board_config.update("build.hwids", [
["0x2dc8", "0x6002"], # 8BitDo 8BitDo SN30 Pro+
])

+ 8
- 0
platformio.ini View File

@ -57,6 +57,9 @@ build_flags = -DGAMEPAD_OUTPUT=2
src_filter = +<gamepad/USB-Gamepad>
framework = arduino
platform = atmelavr
extra_scripts = pre:hwids/usb.py
board_build.usb_product = "8BitDo SN30 Pro+"
board_vendor = "8BitDo"
[out-bt]
build_flags = -DGAMEPAD_OUTPUT=3
@ -66,6 +69,9 @@ src_filter = +<gamepad/ESP32-BLE-Gamepad>
extends = out-usb, out-radio
build_flags = -DGAMEPAD_OUTPUT=4
src_filter = ${out-usb.src_filter} ${out-radio.src_filter}
extra_scripts = pre:hwids/usb.py
board_build.usb_product = "8BitDo SN30 Pro+"
board_vendor = "8BitDo"
[out-switchusb]
# switch only supports 1 controller per dongle
@ -73,6 +79,8 @@ build_flags = -DGAMEPAD_OUTPUT=5 -DGAMEPAD_COUNT=1
src_filter = +<gamepad/Switch-USB-Gamepad>
lib_deps = https://github.com/OpenRetroPad/HID
extra_scripts = pre:hwids/switch.py
board_build.usb_product = "HORIPAD S"
board_vendor = "HORI CO.,LTD."
# radio input


Loading…
Cancel
Save