IOIOLib modified to add listener to Digitalinput