You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if "usb_manufacturer" in BOARD_BUILDOPTS:
ARDUINO_USBDEFINES.append('USB_MANUFACTURER=\\"%s\\"' % (env.subst(
"${BOARD_OPTIONS['build']['usb_manufacturer']}").replace('"', "")))
This allows boards to specify a manufacturer if they care about it.
The text was updated successfully, but these errors were encountered:
PlatformIO Version (
platformio --version
): PlatformIO, version 2.9.0.dev0Description of problem
The USB core for Arduino expects a USB manufacturer string as a preprocessor define,
-DUSB_MANUFACTURER
. See https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/USBCore.cpp#L62 and https://github.com/adafruit/Adafruit_Arduino_Boards/blob/master/hardware/adafruit/avr/boards.txt#L26 for an example of where other packages define it.Steps to Reproduce
I’m using a MediaTek LinkIt Smart 7688 DUO, but this should happen for anybody using their own VIDs.
Additional info.
I solved this by appending to https://github.com/platformio/platformio/blob/develop/platformio/builder/scripts/frameworks/arduino.py#L126:
This allows boards to specify a manufacturer if they care about it.
The text was updated successfully, but these errors were encountered: