4017 IC switch matrix controller and library. Up to 100 switches with 3 pins!

Dear Marco,
thank you for the share.

I used the 4017 matrix to control 37 keys of a small piano. I used your code but i dont know if i have to connect the reset output from arduino and where to connect.
For this reason I get different values for the pressed key if i switch off and then on the whole circuit.
Can you give any advice. I use 2 4017 connected as on the edn article.

Thank you in advance
Stavros