i try this but it break code.
How?
int keypress ;
Variables used in both interrupt service routines and in regular functions MUST be declared volatile.
for(int row=0;row<4;row++) {
for(int col=0;col<8;col++) {
delay(100);
lc.setLed(0,col,row,true);
if(keypress==1){
break;
}
}
}
You only want to break out of the inner loop?
Isyourspacekeybroken?