summaryrefslogtreecommitdiffstats
path: root/Matrix_5x6
diff options
context:
space:
mode:
authorNils Schneider <nils.schneider@gmail.com>2011-11-06 22:14:32 +0100
committerNils Schneider <nils.schneider@gmail.com>2011-11-06 22:14:32 +0100
commit7938dd36ad7fab6fcb16adeaab98957c1b256278 (patch)
treec526d437547deb8ed6d0eda3042e45bd938eec25 /Matrix_5x6
parent2fc64cbc442588dfb0763833cf8785e3cf81d132 (diff)
downloadledmatrix-7938dd36ad7fab6fcb16adeaab98957c1b256278.tar
ledmatrix-7938dd36ad7fab6fcb16adeaab98957c1b256278.zip
animation 1
Diffstat (limited to 'Matrix_5x6')
-rw-r--r--Matrix_5x6/Charlie/Charlie.pde9
-rw-r--r--Matrix_5x6/Charlie/font.h4
2 files changed, 11 insertions, 2 deletions
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},