I’m building a project and want to use the Pro Micro (sort of). I’ll have other supporting electronics that I’ll need to build a board for. So why not just include the 32u4, crystal, etc on the new board? If I burn the ProMicro bootloader on a 32u4 and implement the same design around the 32u4…
Will it simply be recognized as a Sparkfun Pro Micro?
Will I be able to use the “NOT USED” pins shown in the schematic if I route traces to those pins? Like ADC0 and ADC1. Are they implemented in the software design just not in the hardware on the board?
In general the answer is; yes, you can do that. I have done it several times using the ATmega328, but not with the 32u4. Regardless the principle is the same.
More specifically,
Recognized by what? If you are asking if the IDE host system USB driver will talk with your custom board, the answer is yes if you implement the USB interface the same way and program the chip with the same bootloader as the Pro Micro. The Arduino IDE itself does not recognize the Pro Micro, you have to tell the IDE what board you want it to target.
Yes, however you may have to drop back to more primitive access methods depending on what you want to do with each pin. You will need to learn more about the IDE and the ATmega to determine the specific methods or limits.
I’ve been using the ProMicro for code development and prototyping. I haven’t gotten the plain-jane 32u4 yet though. Next step will be getting a tqfp44 breakout board and upload the Leonardo bootloader and see how the code works.
It won’t be that hard. The Leonardo schematic isn’t that difficult. A USB port, a few passives and a 16MHz crystal. I want to make sure the Leo bootloader works like the ProMicro though. Whereby it starts user code immediately and needs a double-click of the reset to enter bootloader mode.