#define DELAY 99999
void setup() {
// put your setup code here, to run once:
volatile long i,j,k;
volatile char *dirf,*outf,val;
volatile char *dira,*outa;
dirf=0x30;outf=0x31;
dira=0x21;outa=0x22;
*dirf=0x1f;
*dira=0x1f;
while(1){
for(j=0;j<5;j++){
for(k=0;k<5;k++){
val=0xe1<<k;
*outf=0x01<<j;
*outa=~val;
for(i=0;i<100000;i++);
}
}
}
}
void loop() {
// put your main code here, to run repeatedly:
}