Added pi digital input.