jpconstantineau / BlueMicro_HID_Arduino_Library

Universal BLE/USB HID Library
Other
20 stars 0 forks source link

To use on PlatformIO requires additional build flags in platformio.ini for project. #3

Open bobsupercow opened 2 years ago

bobsupercow commented 2 years ago

Seems likely tied to USB enumeration timing with the Adafruit BSP. Without these, there is no enumeration and thus no HID device on the host system.

build_flags = -DUSE_TINYUSB 
lib_archive = no

https://community.platformio.org/t/tinyusb-on-seeedstudio-femto/18732/3 https://community.platformio.org/t/tinyusb-sometimes-project-do-not-work/27518/3

jpconstantineau commented 2 years ago

This is a PlatformIO specific issue that's not related to this library but is more likely to be resolved at the BSP level - or by the config in the PlatformIO.

Suggested workaround is a good solution and I won't be closing this to make it visible in case others face the same issue.