How to scan 16 encoders using shiftregister ?

Dear TK,

 

I 'm building a midi interface based on Teensy3.1 (i know it will be simple to use Core32 module instead but don’t have one yet) and i add 16 rotary encoders to my project connected as describe in the DIN module page.

The problem is that i try to code to interface with the encoder but result is not very accurate.

Could you share your piece of code you use to scan the encoder or put me on the way to get good result ?

 

Best regards,

Xarolium

Hi,

 

the code can be found here:

http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fmios32%2Fcommon%2Fmios32_enc.c

 

Best Regards, Thorsten.

Dear TK,

 

Thank you for the link,

I spent lot of time to find this without success, i should be blind :pinch:

 

Best regards,

Xarolium