I'm not sure what I did, but the digital inputs have stopped working. Monitoring the pins show no change when the input signal changes. If I run the Firmata test program and select the pin as an input it works fine.
It might be that the pins are defined as outputs. Is there a way to define pin as an input or an output?