update Arduino delay function to incorporate 12MHz clock speed