I'm curious if there is an array of all avaiable pins on current board as array/definition. I'm looking for it because i got array of all pins my project is using and i want to pull all other pins to vcc to eliminate all floating pins and i dont want to duplicate such array if it exists.
On an Uno for example the digital pins are numbered 0 to 13 and the analog pins are normally referred to as A0 to A5. However you can also refer to the analog pins as 14 to 19. In other words, you can iterate over all of them with something like
for (byte n = 0; n <= 19; n++) {
}
If that does not help please explain in more detail what you want to do.
Analog pins are digital pins in the first place. NUM_DIGITAL_PINS includes the "analog" pins. For example, on an UNO, NUM_DIGITAL_PINS is 20, and A0-A5 are pin numbers 14-19.
On a Nano, there are two analog-only pins A6-A7. You cannot pull them to VCC because they don't have digital circuitry like the other pins.
Come to think of it, Robin's post (with "19" as the destination, or whatever your particular board has as user pins) is probably a better idea.
NUM_DIGITAL_PINS is defined in one of the variant files, and should be "correct" on all boards, but on some boards it may include "internal" connections that you don't want to mess with.