Here is the code we have. We eventually will hook this up to functions but for now, we just need it to give us feedback. And based on the encoder, does it need to be seated completely back into the housing? Here is a link to the datasheet... which is terribly written on how the thing actually goes together...
http://www.usdigital.com/assets/gene...atasheet_1.pdf