intention is to create a small and handy python script to wait for pin changes on piface-digital 2 and submit to thingsboard.
instructions how to setup the piface-digital 2 cann be found [https://www.element14.com/community/thread/39390/l/piface-digital-2-setup-and-use?displayFullThread=true]