learning user defined function to blink LED

:slight_smile: Thanks for pointing me in the right direction. I finally got the code to work thanks to your suggestions.
Ken