Skip to content

Instantly share code, notes, and snippets.

@ishotjr
Created August 10, 2015 00:00
Show Gist options
  • Save ishotjr/5b9e5ac7765cf1a4cf9e to your computer and use it in GitHub Desktop.
Save ishotjr/5b9e5ac7765cf1a4cf9e to your computer and use it in GitHub Desktop.
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