// Keyboard Matrix Tutorial Example // baldengineer.com // CC BY-SA 4.0 // JP1 is an input byte rows[] = {16,17}; const int rowCount = sizeof(rows)/sizeof(rows[0]); // JP2 and JP3 are outputs byte cols[] = {18, 2}; const int colCount = sizeof(cols)/sizeof(cols[0]); byte keys[colCount][rowCount]; void setup() { Serial.begin(9600); for(int x=0; x