- Connection for the ROWS
The matrix rows are connected to digital pin: 9, 10, 11, 12.
- Connection for the COLUMS
The matrix columns are connected to analogic pins: A0,A1,A2,A3 through a voltage divider with R=10 kOhm.
Through the Arduino DUE board the results of the analog reading are converted to 12-bit digital values and averaged over three output values for a robust result.