forked from Michel2/LoLshield
Minor cleanup.
This commit is contained in:
@@ -41,7 +41,7 @@ void setup() // run once, when the sketch starts
|
||||
uint8_t i = 0;
|
||||
void loop() // run over and over again
|
||||
{
|
||||
unsigned long start = 0;
|
||||
static unsigned long start = 0;
|
||||
unsigned long end;
|
||||
|
||||
for (int row = 0; row < DISPLAY_ROWS; row++)
|
||||
|
||||
@@ -46,13 +46,13 @@ void setup() // run once, when the sketch starts
|
||||
/* ----------------------------------------------------------------- */
|
||||
/** MAIN program Loop
|
||||
*/
|
||||
static const char test[]="HELLO WORLD! ";
|
||||
|
||||
void loop() // run over and over again
|
||||
{
|
||||
const char test[]="HELLO WORLD! ";
|
||||
|
||||
for (int8_t x=DISPLAY_COLS, i=0;;) {
|
||||
for (int8_t x=DISPLAY_COLS, i=0;; x--) {
|
||||
LedSign::Clear();
|
||||
x--;
|
||||
for (int8_t x2=x, i2=i; x2<DISPLAY_COLS;) {
|
||||
int8_t w = Font::Draw(test[i2], x2, 0);
|
||||
x2 += w, i2 = (i2+1)%strlen(test);
|
||||
|
||||
Reference in New Issue
Block a user