Thank you richard

the reason I had to add a value to the portc, was the fact in the 64 key matrix some code were duplicate.
so 2 different key had the same value.

I'll have to test this code.

Name:  same val.jpg
Views: 2791
Size:  46.3 KB