Hi, i would like to use an AVR Atmega32U4 with LUFA as an HID device, and would also like to make it programmable with any computer. For that, i figured the easiest way would be to have a button on the board the Atmega is located in, linked to one of the digital inputs. If that button is pressed when the board is powered up, it enters a "writing mode". In this mode, the board won't start as an HID device, but as a serial receiver. How can i dynamically switch interfaces after compilation ?