Tio reduce the noise of a processor it is good practice to set all unused ports to INPUT_PULLUP.
If your identifier could return the maximum numbers of ports available, you could easily set them all to INOUT_PULLUP before you
set your ports needed by the project.
In my case there was not only digital components but also analog stuff. I was astonished how much noise you get out of your system when you ste the unused ports.
Tio reduce the noise of a processor it is good practice to set all unused ports to INPUT_PULLUP. If your identifier could return the maximum numbers of ports available, you could easily set them all to INOUT_PULLUP before you set your ports needed by the project.
In my case there was not only digital components but also analog stuff. I was astonished how much noise you get out of your system when you ste the unused ports.
Reginald, Frankfurt, Germany