mirror of
https://github.com/jprodgers/LoLshield.git
synced 2026-07-28 04:05:28 +00:00
I've re-arranged and re-named a number of things in the move over from google code. I've added a few animations and things as well.
40 lines
739 B
Arduino
40 lines
739 B
Arduino
|
|
#include "Charliplexing.h"
|
|
#include "Myfont.h"
|
|
|
|
#include "Arduino.h"
|
|
|
|
|
|
int leng=0; //provides the length of the char array
|
|
unsigned char test[]="full ASCII charset: $ % & ! [ ] { } \0"; //text has to end with '\0' !!!!!!
|
|
|
|
/* ----------------------------------------------------------------- */
|
|
/** MAIN program Setup
|
|
*/
|
|
void setup() // run once, when the sketch starts
|
|
{
|
|
LedSign::Init();
|
|
for(int i=0; ; i++){ //get the length of the text
|
|
if(test[i]==0){
|
|
leng=i;
|
|
break;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/* ----------------------------------------------------------------- */
|
|
/** MAIN program Loop
|
|
*/
|
|
|
|
void loop() // run over and over again
|
|
{
|
|
|
|
|
|
|
|
Myfont::Banner(leng,test);
|
|
|
|
|
|
}
|