From 7938dd36ad7fab6fcb16adeaab98957c1b256278 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 6 Nov 2011 22:14:32 +0100 Subject: animation 1 --- Matrix_5x6/Charlie/Charlie.pde | 9 +++++++-- Matrix_5x6/Charlie/font.h | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'Matrix_5x6/Charlie') diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde index 32b1e83..d1dc6e8 100644 --- a/Matrix_5x6/Charlie/Charlie.pde +++ b/Matrix_5x6/Charlie/Charlie.pde @@ -184,6 +184,8 @@ void lauftext(char *text) { f = &(font_numbers[c-0x20][0]); } else if (c == ' ') f = &(font_space[0][0]); + else if (c == '#') + f = &(font_block[0][0]); for (y=0; y<5; y++) { scr[x][4-y] = (*(f+y)>>(i+1)&1) * 20; @@ -198,13 +200,16 @@ void lauftext(char *text) { } } - } void loop() { // zufall_fading_up(); // zufall_fading_down(); - lauftext("META MEUTE"); + zufall_fading_up(); + lauftext("META MEUTE##"); + zufall_fading_down(); schnecke(random(4)); + + } diff --git a/Matrix_5x6/Charlie/font.h b/Matrix_5x6/Charlie/font.h index b01794e..c836448 100644 --- a/Matrix_5x6/Charlie/font.h +++ b/Matrix_5x6/Charlie/font.h @@ -4,6 +4,10 @@ byte font_space[][5] = { {0x00,0x00,0x00,0x00,0x00} }; +byte font_block[][5] = { + {0xff,0xff,0xff,0xff,0xff} +}; + byte font_chars[][5] = { {0x7c,0x44,0x44,0x7c,0x44}, // a {0x7c,0x44,0x78,0x44,0x7c}, -- cgit v1.2.3