Customize USB vid/pid/manufacturer/product
This commit is contained in:
parent
a3a4e9d873
commit
bdf7732a64
|
@ -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+
|
||||
])
|
|
@ -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…
Reference in New Issue