From 5c7cadacad9dc4197af5353d26c2b8b922002a50 Mon Sep 17 00:00:00 2001 From: Alexander Kauerz Date: Mon, 7 Nov 2011 14:29:51 +0100 Subject: Lauftext kommentiert und Animation optimiert. --- Matrix_5x6/Charlie/Charlie.pde | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Matrix_5x6/Charlie') 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)); } -- cgit v1.2.3