Square wave generation issues

jrahul9797:
Sorry i am a newbie, didn't quite get you. Can you please elaborate?

In the BWD sketch the LED pin changes from HIGH to LOW and back again to produce the blink. The time it stays in each state is set by a variable. What do you think might happen if you used buttons to change the value of that variable ?