arduino/Arduino — pull request #118 by Lauszus (2012-10-01 02:35:57+00:00)
Title: Improved Leonardo bootloader (new)

This is equal to my old pull request (https://github.com/arduino/Arduino/pull/93), but since I deleted the file I decided to make a new one.

The power-on reset detection didn't work properly, but has now been fixed.
With the original firmware my board always ran the bootloader. But the updated version works perfectly. The upload process (without needing to press the reset button) also works as intended.

The .hex file is compiled using the version of LUFA as originally used ("LUFA 111009").
The VID and PID are the same as the original ones, as defined in the the makefile:

#USB vendor ID (VID)
#official Arduino LLC VID
#VID = 0x2341

#USB product ID (PID)
#official Leonardo PID
#PID = 0x0036