diff options
author | Alexander Kauerz <kauerz@informatik.uni-luebeck.de> | 2011-11-07 14:29:51 +0100 |
---|---|---|
committer | Alexander Kauerz <kauerz@informatik.uni-luebeck.de> | 2011-11-07 14:29:51 +0100 |
commit | 5c7cadacad9dc4197af5353d26c2b8b922002a50 (patch) | |
tree | 1cba69517f3948e8cad4ce86e31f6f0d310854b4 /Matrix_5x6/Charlie | |
parent | a244b82cdfb39b639466cb760e57b426f5a7c94c (diff) | |
download | ledmatrix-5c7cadacad9dc4197af5353d26c2b8b922002a50.tar ledmatrix-5c7cadacad9dc4197af5353d26c2b8b922002a50.zip |
Lauftext kommentiert und Animation optimiert.
Diffstat (limited to 'Matrix_5x6/Charlie')
-rw-r--r-- | Matrix_5x6/Charlie/Charlie.pde | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde index 4ee40c3..4acbdde 100644 --- a/Matrix_5x6/Charlie/Charlie.pde +++ b/Matrix_5x6/Charlie/Charlie.pde @@ -185,13 +185,13 @@ void lauftext(char *text) { i = 6; while (i--) { - if (c > 0x40 && c < 0x5B) { + if (c > 0x40 && c < 0x5B) { // Buchstaben f = &(font_chars[c-0x41][0]); - } else if (c >= 0x30 && c < 0x3A) { + } else if (c >= 0x30 && c < 0x3A) { // Zahlen f = &(font_numbers[c-0x20][0]); - } else if (c == ' ') + } else if (c == ' ') // Leerzeichen f = &(font_space[0][0]); - else if (c == '#') + else if (c == '#') // Füllzeichen f = &(font_block[0][0]); for (y=0; y<5; y++) { @@ -213,10 +213,10 @@ void lauftext(char *text) { void loop() { // zufall_fading_up(); // zufall_fading_down(); - zufall_fading_up(); - lauftext("META MEUTE##"); - zufall_fading_down(); - schnecke(random(4)); +zufall_fading_up(); +lauftext(" META MEUTE#"); +zufall_fading_down(); +schnecke(random(4)); } |