} //bit 3 is reserved if (i==2) { failMode[j] += digitalRead(PINSO)<<2;//bit 2 is set if shorted to VCC } if (i==1) { failMode[j] += digitalRead(PINSO)<<1;//bit 1 is set if shorted to GND } if (i==0) { failMode[j] += digitalRead(PINSO)<<0;//bit 0 is set if open circuit }