If you look at the example, the simplest way to vary the on/off time, is to change the value of"interval" when you change the state of the LED.
There is no reason for "currentMillis" to have global scope.
If you look at the example, the simplest way to vary the on/off time, is to change the value of"interval" when you change the state of the LED.
There is no reason for "currentMillis" to have global scope.