I've got a 5v/16MHz Pro Micro which I'm trying to set up as a DCC packet sniffer. I'm currently trying to test with this example code: Box. I have run this code successfully on both Uno and Nano boards, without any issues. On these boards, I get the expected output on the serial monitor, at 38400.
However, when uploaded to a Pro Micro, nothing is output to the serial monitor. Not even the lines in the 'Setup' function. In fact, the serial monitor and Arduino IDE freezes, and needs to be given the CTRL+ALT+DEL treatment. Given that it's not even outputting the 'Setup' function code, I doubt it's a code issue.
This occurs when I upload to the board as an 'Arduino Micro' and 'Arduino Leonardo' (which it originally showed as). I've also tried uploading as a Pro/Pro Mini, but this didn't even upload. What do I need to do to get this Pro Micro to actually talk to my computer?
Worst case, I'll have to replace it with a Nano and squeeze it in there.
Also, for what it's worth, I've got the input from the track hooked to Pin 3, which I understand is INT0 on the Micro. I've also just upgraded to IDE 1.8.10, and have the latest board definitions.