set all pins as input for loop

[ad_1]

set all pins as output for loop
for(int i=[smallest pin number]; i<=[largest pin number]; i++) {
pinMode(i, OUTPUT);
}
set all pins as input for loop
for(int i=[smallest pin number]; i<=[largest pin number]; i++) {
pinMode(i, INPUT);
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com