I want to use a USB connection with the ATmega32u4, but there are 6 pins in the datasheet (http://www.atmel.com/Images/doc7766.pdf) associated with the USB. I don't know which ones connect to the generic USB connections. Can someone show me how they are setup?
To connect this ATmega on USB, you should connect:
Pin 3 (D-) with a 22 Ohm resistor in serial connected at pin 2(D-) of USB
Pin 4 (D+) with a 22 Ohm resistor in serial connected at pin 3 (D+) of USB
pin 35 (GND) connected at pin 1 of (GND)USB
pin 34 (VCC) connected at pin 4 of (VCC)USB