I have a small function that used to produce a variety of blinking speeds and rates

Please post the whole of the code you are trying to upload.

You may want to read this before you proceed:-
how to get the best out of this forum