This is my first post here. I have been fumbling my way through this and have made a lot of progress. I have an issue however. I did the debounce switch example the other day to see how it worked and it worked exactly as expected. So today I was going to take a snippet from it for another code I was writing. Instead of the light turning on with one push and off with a second push it would be on [u]while[/u] the button was pushed and off when I let go.
So thinking I had an error in my code, I went back and reloaded the original example and tried that. Same result!
I don't want to write any more code until I get it behaving properly. Is there a way to clear the atmega so that I know I am not getting any residual effects? Is this a problem with the Arduino?
Thanks for any advice. Jeremy