Using digital input in beagle