Board-specific firmware knowledge. The Beetle is an ATmega32U4 with **native USB** and **ten pads**, and almost every trap on it comes from one of those two facts: USB means the programming interface is the sketch you are about to replace, and ten pads means most of the Leonardo pin numbering the compiler accepts goes nowhere on this board.