Hi, I have been playing with arduino for a few months now, and have come to a point in my project where I need some help.
I am trying to use the button press function for my Sparkfun Rotary Encoders. Currently I am using the following code to count the rotations,http://www.circuitsathome.com/mcu/programming/reading-rotary-encoder-on-arduino
but It doesn't specify how to use the button. It is currently wired up with one of the pins connected to ground and the other to digital pin 12, as shown in this example (not using arduino),http://www.pavius.net/2010/02/rotary-encoder-based-cooking-timer/
Do I need to re-wire that side of the encoder so that I can use it like a button as shown in the learning area of the arduino site.http://arduino.cc/en/Tutorial/Button
any help will be greatly appreciated.