Skip to content

Commit

Permalink
Demo Mode Added
Browse files Browse the repository at this point in the history
This is a demo mode I use at conferences. Had to change a few things to
work with the new library.
  • Loading branch information
jprodgers committed May 28, 2015
1 parent fa3573b commit 061225f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions examples/Animations/LoLShield_Demo/LoLShield_Demo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@

int toggleState;
int EEPROMaddress = 0;
int charLength[]={
20, 14, 23, 30};
unsigned char text0[]="My eyes are up there";
unsigned char text1[]="Blinky or GTFO";
unsigned char text2[]="Enjoying the lightshow?";
unsigned char text3[]="Would you like to play a game?";
int charLength = 30;
unsigned char text[]="Would you like to play a game?";

byte brightness = 7;

Expand Down Expand Up @@ -42,7 +38,7 @@ void loop(){
1 Game of Life
2 "Would you like to play a game?"
3 Double Helix
4 Basit test
*/

switch(toggleState){
Expand All @@ -53,7 +49,7 @@ void loop(){
life();
break;
case 2:
Myfont::Banner(charLength[3],text3);
Myfont::Banner(charLength,text);
break;
case 3:
DNA();
Expand Down Expand Up @@ -335,7 +331,7 @@ void life(){
if (count == 3 && world[x][y][0] == 0) {
// A new cell is born
world[x][y][1] = 1;
LedSign::Set(x,y,1);
LedSign::Set(x,y,brightness);
}
else if ((count < 2 || count > 3) && world[x][y][0] == 1) {
// Cell dies
Expand Down

0 comments on commit 061225f

Please sign in to comment.