Arduino sketch for 3-channel intervalometer