I have a sketch I'm writing for an ATTiny85 but I like to test the code on a nano to keep from having to move the ATTiny chip from the programmer back to it PCB and when the code is right based on the test from the nano, I change the pinout assignments for the external hardware and then upload to the ATTiny then put it in the PCB...
I'd like to be able to add to the sketch, some way of detecting which chip I'm compiling for (the Nano or the ATTiny85) and then set the pin assignments accordingly.
I'm familiar with how to do that in C++, what I don't know, is how to identify an ATTINY85 or a NANO in the #if expression. Where would I find that reference? I did look for it but to no avail.