Modify digitalRead return value

digitalRead will now return 0 (consistent with Arduino) when an
error (invalid pin) is encountered.