void loop(){
byte col = 0,row = 0;
for(col=0;col<16;col++){
digitalWrite(colp[col],LOW);
for(row=0;row<6;row++){
if(digitalRead(rowp[row],LOW)){ <-ERROR LINE
pressedKey[(row-1)*15+col-6]=HIGH;
}else{
pressedKey[(row-1)*15+col-6]=LOW;
}
}
digitalWrite(colp[col],HIGH);
}
this is a part of my arduino keyboard firmware im working on right now
the colp[col] works fine, but the rowp[row] gets the error message:
too many arguments to function 'int digitalRead(uint8_t)'
what's going on?
Thanks in advance
Moderator edit: [code] ... [/code] tags added. (Nick Gammon)