An Arduino logic analyzer sketch