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
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).
- Enable verbose output during compilation under file → preferences in the IDE.
- Compile a sketch for the Lilypad USB.
- 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
- In the core directory you will find a number of files that relate to USB;
CDC.cpp,USB*.cppandUSB*.h, there might be others. - Start digging through them and modify what is needed.
- 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