#include "header.h"
void setup() {
init_port();
volatile char *outf, *outk;
outf = 0x31; outk = 0x108;
volatile long i;
unsigned char A[] = {0x18, 0x24, 0x42, 0xFF, 0x81, 0x81, 0x81, 0x81};
unsigned char B[] = {0xFE, 0x81, 0x81, 0xFE, 0x81, 0x81, 0xFE, 0x00};
unsigned char C[] = {0x00, 0x38, 0x40, 0x80, 0x80, 0x80, 0x40, 0x38};
unsigned char D[] = {0xc0, 0xa0, 0x90, 0x90, 0x90, 0x90, 0xa0, 0xc0};
unsigned char E[] = {0x00, 0xf8, 0x80, 0x80, 0xf8, 0x80, 0x80, 0xf8};
char row, col;
while(1){
for(int a=0;a<5;a++){
for(i=0;i<17000;i++){
for(row=0;row<8;row++){
*outk = ~(1<<row);
if(a==0){
*outf = A[row];
}else if(a==1){
*outf = B[row];
}else if(a==2){
*outf = C[row];
}else if(a==3){
*outf = D[row];
}else{
*outf = E[row];
}
*outf = 0x00;
}
}
cleardisplay(outf, outk);
}
}
}