Simple Arduino intervalometer with a 3-position switch