mon / Arduino-USB-Rename

Programatically rename a USB based Arduino
MIT License
23 stars 4 forks source link

Works with Micro and Leonardo, but not Due #2

Open Enabler97 opened 1 year ago

Enabler97 commented 1 year ago

Is there a solution to make this work with Due? Compiling creates and error stating the "PluggableUSB.h" library is not found. Adding to the sketch does not work either.

mon commented 1 year ago

PluggableUSB, the library used by the AVR arduinos, seems to have been replaced (I think by tinyusb) in the ARM Arduinos. It's difficult to google for, for some reason.

I'll keep this open in case I get an ARM arduino myself and want to add support, but it seems like it's nontrivial.

mon commented 1 year ago

On further research though, it seems like the Due should expose PluggableUSB perfectly fine. See: https://www.arduino.cc/reference/en/libraries/midiusb/

The library is compatible with PluggableUSB-ready cores (AVR core > 1.6.8, SAM core > 1.6.4, SAMD core > 1.6.1)

The Due is a SAM core so it should work. Is your installation up to date?