deanjames:
The only problem i have is that some of the pins are shorted through tracks on the PCB board i wish to test, What i now need to introduce into the code is a way of saying the 8 pairs of pins that are shorted are still passes even though they are returning a high reading.For example
Pins 2-66 are all tested against one another they are taken for a one dimensional array one at a time and tested.
All Pins except (2 and 10) (23 and 44) (24 and 30 ) (29 and 31) (32 and 33) (39 and 41) (42 and 47) and (55 and 60) will return a low and a pass but the above pairs will return a high and a fail,
What i want my code is to acknowledge these high as passes.I have thought of introducing a 2 dimensional array with these pairs but i am not quiet sure on how to implement it
Are you really saying that these specific pairs of pins are required to be a short in order for the test to pass? If so, the simplest approach I can see would be to define a 2-d array of booleans which specify whether the expected result (for the corresponding pin pair) is shorted or not shorted. I don't know how many pins you will have in total, but you could consider storing the array in progmem, and using one bit per entry (rather than one byte) to reduce the runtime memory requirements.