Maximum Digital Sample Rate possible (3 digital inputs)?

Oops. I had forgotten to put in the line " oldPins = pins; // Look for further changes". Corrected above.