Mistake in code

The code on this page works fine, I used it with a student the other day, but the pinMode needs to be set to input, not output.

I apparently don't have access to edit that page.

Paul B

http://www.arduino.cc/playground/Main/RotaryEncoders

You can create an account at: http://www.arduino.cc/playground/Main/LoginForm, after which you can edit any of the pages on the playground.