Got the digital input working.

Signed-off-by: shrimpboyho <shrimpboyhoftw@gmail.com>