Greetings!
I need to change a counter variable to go up or down upon the state change of 2 digital input pins on the Arduino. I'm having trouble interfacing it to a debounce code.
The idea is to have counter++ run when pin6 is HIGH and counter-- when pin7 is HIGH, it would be connected to momentary switches.
Any tips or ideas? I have tried the tutorial on Arduino site and seems I need a bit more code than that.
I need to change a counter variable to go up or down upon the state change of 2 digital input pins on the Arduino. I'm having trouble interfacing it to a debounce code.
The idea is to have counter++ run when pin6 is HIGH and counter-- when pin7 is HIGH, it would be connected to momentary switches.
Any tips or ideas? I have tried the tutorial on Arduino site and seems I need a bit more code than that.