ATmega32u4: change USB device class to CDC

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

This is far (and I mean FAR) outside my area of knowledge.

I hope that the below gets you on the way (and doesn't put you on the wrong foot).

  1. Enable verbose output during compilation under file → preferences in the IDE.
  2. Compile a sketch for the Lilypad USB.
  3. In your output you will find which core is used and where it is located.
Using board 'LilyPadProtoUSB' from platform in folder: C:\Users\yourUsername\AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.13
Using core 'arduino' from platform in folder: C:\Users\yourUsername\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
  1. In the core directory you will find a number of files that relate to USB; CDC.cpp, USB*.cpp and USB*.h, there might be others.
  2. Start digging through them and modify what is needed.
  3. Compile a sketch and check.

Good luck

Notes

  • These instructions are for IDE2.0; I'm reasonably sure that they also apply to 1.8.x.
  • The change that you make might affect all boards or all future compiles for the LilyPad; you're advised to make backups :wink: