-
-
Save ishotjr/5b9e5ac7765cf1a4cf9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Myfont::Banner(int len, unsigned char* text, unsigned int scrollingDelay){ /* text banner creator. use with example code!!*/ | |
int xoff=14;/* setmx offset to the right end of the screen*/ | |
for(int i=0; i<len*5 +52; i++){ /*scrolling loop*/ | |
for(int j=0; j<len; j++){ /*loop over all of the chars in the text*/ | |
Myfont::Draw(xoff + j*6, text[j]); /* call the draw font function*/ | |
} | |
xoff--; /* decrement x offset*/ | |
delay(scrollingDelay); /*scrolling speed increments if delay goes down*/ | |
LedSign::Clear(); /*empty the screen */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment