In terms of examples of how to implement USB support you could have a look at this project called LUFA http://www.fourwalledcubicle.com/LUFA.php its for AVR micros but it might give some idea's
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In terms of examples of how to implement USB support you could have a look at this project called LUFA http://www.fourwalledcubicle.com/LUFA.php its for AVR micros but it might give some idea's