DigitalPin input implemented and tested on RaspberryPi