#include "head.h"
void setup() {
init_program();
}
void loop() {
volatile long i;
char row, col;
//Function to glow all LEDs of one by one at a time:
for(row=0; row<8; row++) //ROWS
{
outrow(~(1 << row));
for(col=0; col<8; col++) //COLUMNS
{
outcol(1 << col);
for(i=0; i<50000; i++); //Delay
}
outcol(0);
}
//Function to glow all LEDs at same time:
/*outrow(0x00);
outcol(0xFF);
for(i=0; i<100000; i++);*/
}