I wasnt sure which section to put this in since theres no specific "Leonardo/ATMega32u4" section...moderators, feel free to move it if you think its better suited somewhere else...
Quick question regarding pin assignments on the Leonardo/ATMega32u4.
Im designing a custom board using the ATMega32u4 running the Arduino Leonardo bootloader.
I need an extra pin, and on my board, pin-22 (PD5/TXLED) is right next to the peripheral I need to control.
I really dont care about having the TX/RX LED's on the board; its going to be a finished production product so the TX/RX LED's are useless. I would be happy eliminating both completely, or maybe shifting both RX and TX activity indications to the one RX LED...whatever is easier.
I want to be able to still use USB for uploading new code revisions (rather than just using ISP every time I want to revise code), so I need to permanently disable those pins' assignment to RX/TX in the bootloader/code rather than just "setting them low" manually in the program loop.
I found some stuff relating to this, but the thread is really old and seems to be dealing with much older versions of Arduino, and were confusing to follow with the IDE version Im running (1.6.7, I know its not the latest, but some of my programs refuse to compile correctly on the latest, so Im running 1.6.7, it works just fine for me).
Does anyone have any "quick and simple" way to disable them? I assume Ill be dealing with the caterina.c and caterina.h files located in C\program files(x86)\arduino\hardware\arduino\avr\bootloaders\caterina folder.
Or maybe someone knows what I can just "$FF" out in the .hex bootloader file? When you use "burn bootloader" in the Arduino IDE, which .hex file does it point to? (caterina-leonardo.hex, leonardo-prod-firmware-12-10.hex, etc).
Thanks
Ben