Arduino Code to multiplex a single trigger through a series of digital lines