I want to program a microcontroller (AVR) to control some leds through USB. It\'s just out of interest in how to build and program USB devices.
There are some AVR microcontrolle
If you are into framework for AVR microcontrollers with hardware USB then take a look into LUFA, and if you are into AVRs with software USB then look into V-USB. They have both implemented many USB classes so you don't have to do it on your own - just use them.