My code writing is not up to much i can promise you
So are you saying at the end of the code
if (digitalRead(pinArray[b]) == LOW){ // Has the pin been pulled low by a short?
Serial.println(" ****FAIL****");
}
else {
Serial.println("PASS");
Maybe a piece of code like this
const byte safeArray[] = {
{2,10},{23,44},{24,30}
}; // This would come at the beginning of the code
if ( safeArray == High);
switch (byte b)
case 'a':
digitalRead (2, Low)
break;
case 'b':
digitalRead (3, Low)
break;
case 'c':
digitalRead (4, Low)
break;