How to read a 2bit encoder?

Hi!

I wan't to use a 2 bit encoder ( panasonic EVEV) (http://www.panasonic.com/industrial/components/pdf/atc0000ce4.pdf)
I don't have exactly this one, but don't mind.

So I need to read a binary code from 2 input and be able to say where it goes (+/-)
For example, to turn on/off 4 LED.
But i got no idea about how i could do it.

(then i will use it to control menu on a lcd screen)

Thanks.

This is like a rotary encoder (quadrature encoder). I wrote some posts in my blog about this:

You will find a very basic sketch there that can help you solve your problem.

Elektrix

thanks :wink: