Added variable to control time between flickers

The original code was used for relays. Relays couldn't change on/off
state quicker than 1/2 second so I had included a fixed value. Now that
I'm using LEDs this can go back to the variable to control the speed as
per user input.