Arduino Off Delay Timer Code, The companion tutorial Simple Multi-tasking in Arduino covers all the other necessary .