/* This function lights up a some Leds in a row. The pattern will be repeated on every row. The pattern will blink along with the row-number. row number 4 (index==3) will blink 4 times etc. */ void rows() { for(int row=0;row<8;row++) { delay(100); lc.setRow(0,row,0b10100000); delay(100); lc.setRow(0,row,(byte)0); for(int i=0;i<row;i++) { delay(100); lc.setRow(0,row,0b10100000); delay(100); lc.setRow(0,row,(byte)0); } } }