// display revolving text WELCOME from top to bottom
#include "ecen.h"
// font for row values of each leter; top to bottom
/*uint8_t row_font[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0x93, 0xab, 0xab, 0xab, 0xbb, 0xbb, 0xff,
0xc3, 0xdf, 0xdf, 0xc3, 0xdf, 0xdf, 0xc3, 0xff,
0xff, 0xc3, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xff,
0xff, 0xc7, 0xbb, 0xbf, 0xbf, 0xbf, 0xbb, 0xc7,
0xff, 0xc7, 0xbb, 0xbb, 0xbb, 0xbb, 0xc7, 0xff,
0xff, 0xbb, 0xbb, 0xbb, 0xab, 0xab, 0x93, 0xff,
0xc3, 0xdf, 0xdf, 0xc3, 0xdf, 0xdf, 0xc3, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};*/
// font for row values of each leter; bottom to top
uint8_t row_font[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xbb, 0xbb, 0xab, 0xab, 0xab, 0x93, 0xff,
0xff, 0xc3, 0xdf, 0xdf, 0xc3, 0xdf, 0xdf, 0xc3,
0xff, 0xdf, 0xdf, 0xdf, 0xdf, 0xdf, 0xc3, 0xff,
0xc7, 0xbb, 0xbf, 0xbf, 0xbf, 0xbb, 0xc7, 0xff,
0xff, 0xc7, 0xbb, 0xbb, 0xbb, 0xbb, 0xc7, 0xff,
0xff, 0x93, 0xab, 0xab, 0xbb, 0xbb, 0xbb, 0xff,
0xff, 0xc3, 0xdf, 0xdf, 0xc3, 0xdf, 0xdf, 0xc3,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
void setup(){
volatile char *dir_A=0x21 , *dir_B=0x24;
*dir_A = 0xff, *dir_B = 0xff;
}
// top to bottom
/*void loop(){
for(int i=0; i<64; i++){
long start = millis();
while(millis()-start<400){
for(int j=0; j<8; j++){
pulse(row_font[i+j],0x80>>j);
}
}
}
}*/
// bottom to top
void loop(){
for(int i=0; i<64; i++){
long start = millis();
while(millis()-start<300){
for(int j=0; j<8; j++){
pulse(row_font[i+j],1<<j);
}
}
}
}