max with a rotary encoder

Did someone try the Sunny's library with a 3bit Gray Code encoder?

I'd like to get result with a TW-700198
from sparkfun.com/datasheets/Components/TW-700198.pdf

:-/