//display revolving text WELCOME left to right.
#include "ecen.h"
#define DELAY 3000
uint8_t font[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7e, 0x40, 0x38, 0x38, 0x40, 0x7e, 0x00, //W
0x00, 0x24, 0x4a, 0x4a, 0x4a, 0x4a, 0x3c, 0x00, //e
0x00, 0x00, 0x00, 0x40, 0x7F, 0x02, 0x00, 0x00, //l
0x00, 0x00, 0x24, 0x42, 0x42, 0x42, 0x3c, 0x00, //c
0x00, 0x3c, 0x42, 0x42, 0x42, 0x42, 0x3c, 0x00, //0
0x00, 0x7e, 0x02, 0x0c, 0x0c, 0x02, 0x7e, 0x00, //m
0x00, 0x24, 0x4a, 0x4a, 0x4a, 0x4a, 0x3c, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void setup(){
volatile char *dir_A=0x21 , *dir_B=0x24;
*dir_A = 0xff, *dir_B = 0xff;
}
void loop(){
for(int i=0; i<=64; i++){
volatile long start = millis();
while(millis()-start < 300){
for(int j=0; j<8; j++){
pulse(~(1<<j), font[i+j]);
}
}
}
}