Did you fix the problem in reply #2?
How is the button switch wired? Is there a pull-up or pulldown resistor?
If you make changes to the code, post the new version so we can keep up.
Post code in code tags.
Did you fix the problem in reply #2?
How is the button switch wired? Is there a pull-up or pulldown resistor?
If you make changes to the code, post the new version so we can keep up.
Post code in code tags.