don't find simple code for Bourns EMS22D

While the EMS22A & 22D are different models, (A is Absolute 1024, D is Direction/step 512 PPR) the following thread may get you started.

http://forum.arduino.cc/index.php?topic=110250.0

Ray