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 0, 0, 0, 0, 0, 0, 0 },
|
|
{ 1, 0, 1, 0, 0, 0, 0, 0 }
|
|
}
|
|
};
|
|
|
|
/* TEXTSCROLL */
|
|
bool fontcontainer[24][32];
|
|
char mytext[195]=" out of order $";
|
|
int fontoffset=1;
|
|
int textlength = sizeof(mytext);
|
|
int letter_index[195];
|
|
int fontcheckframe=3;
|
|
int fontvalmultiply=5;
|
|
char myfont[85]="abcdefghijklmnopqrstuvwxyz 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.,!?-<>#+$:;()[]_";
|
|
unsigned long last_time = millis();
|
|
unsigned long current_time = millis();
|
|
|
|
/* Font Functions */
|
|
|
|
int get_letter_index(char c) {
|
|
for (int i=0; i<sizeof(myfont); i++) {
|
|
if (myfont[i]==c) {
|
|
return i;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
void init_fontcontainer() {
|
|
for (int i=0; i<24; i++) {
|
|
for (int j=0; j<32; j++) {
|
|
fontcontainer[i][j]=0;
|
|
}
|
|
}
|
|
}
|
|
|
|
void calculate_letter_index() {
|
|
int l_index=0;
|
|
|
|
for (int i=0; i<sizeof(mytext); i++) {
|
|
int current_letter_size=0;
|
|
int current_letter_index=get_letter_index(mytext[i]);
|
|
|
|
/* Calculate letter width */
|
|
if (font[current_letter_index][10][0]==1) {
|
|
current_letter_size+=1;
|
|
}
|
|
|
|
if (font[current_letter_index][10][1]==1) {
|
|
current_letter_size+=2;
|
|
}
|
|
|
|
if (font[current_letter_index][10][2]==1) {
|
|
current_letter_size+=4;
|
|
}
|
|
|
|
if (font[current_letter_index][10][3]==1) {
|
|
current_letter_size+=8;
|
|
}
|
|
|
|
/* Terminate string */
|
|
if (mytext[i]=='$') {
|
|
textlength=l_index;
|
|
break;
|
|
}
|
|
|
|
l_index+=current_letter_size;
|
|
letter_index[i+1]=l_index;
|
|
}
|
|
}
|
|
|
|
void print_letter (int letter, int offset_x, int offset_y) {
|
|
for (int i=0; i<5; i++) {
|
|
for (int j=0; j<10; j++) {
|
|
if (offset_x+i>=0 && offset_x+i<32 && offset_y+j>=0 && offset_y+j<24 && font[letter][j][i]==1) {
|
|
fontcontainer[offset_y+j][offset_x+i]=1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
void print_mytext () {
|
|
/* clear font canvas */
|
|
init_fontcontainer();
|
|
for (int i=0; i<sizeof(mytext); i++) {
|
|
/* BREAK ON STRING-END CHAR */
|
|
if (mytext[i]=='$') break;
|
|
|
|
/* BREAK IF CHAR OUT OF SCOPE */
|
|
if (letter_index[i]-fontoffset>32) break;
|
|
|
|
/* PRINT LETTER */
|
|
if (letter_index[i]-fontoffset>=-8 && letter_index[i]-fontoffset<32) {
|
|
if (i == 4 || i == 15) {
|
|
if (random(4)>2) {
|
|
print_letter(get_letter_index(mytext[i]),1+letter_index[i]-fontoffset,8);
|
|
}
|
|
} else {
|
|
print_letter(get_letter_index(mytext[i]),1+letter_index[i]-fontoffset,8);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
void change_text(String newtext) {
|
|
int i=0;
|
|
for (i=0; newtext[i] != NULL; i++) {
|
|
mytext[i] = newtext[i];
|
|
}
|
|
|
|
mytext[i] = '$';
|
|
calculate_letter_index();
|
|
}
|