More advanced example testing EDigitalInput.