#include "header.h"
void setup() {
init_port();
volatile char *outf, *outk;
outf = 0x31;
outk = 0x108;
unsigned char arr[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x82, 0x82, 0x82, 0x82, 0x92, 0xaa, 0xc6, 0x82,
0x00, 0x78, 0x84, 0x84, 0xfc, 0x80, 0x44, 0x38,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x38, 0x44, 0x80, 0x80, 0x80, 0x80, 0x44, 0x38,
0x38, 0x44, 0x82, 0x82, 0x82, 0x82, 0x44, 0x38,
0x00, 0x6c, 0x92, 0x92, 0x92, 0x92, 0x92, 0x92,
0x00, 0x78, 0x84, 0x84, 0xfc, 0x80, 0x44, 0x38,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
volatile long i;
char row;
while (1) {
for (int window = 0; window <= 64; window++) {
for (i = 0; i < 2000; i++) {
for (row = 0; row < 8; row++) {
*outk = ~(1 << row);
*outf = arr[window + row];
*outf = 0x00;
}
}
cleardisplay(outf, outk);
}
}
}