Delay script to stop repeated api activation

Please check the blink without delay example - this technique is a fundamental one to master many timing related issues.

Please add code tags next time - use the # button above the smileys.