Add a method to read digital-input register.

Confirmed to work with real robot (on Nextage Open). 

Not sure, by the way, how to handle when no hardware is accessible.