-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from javastraat/develop
added battery and xmastree animations
- Loading branch information
Showing
3 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
battery animation by Einstein | ||
*/ | ||
int battery() { | ||
byte animation1[8] = { | ||
B00111100, B01000010, B01000010, B01000010, B01000010, B01000010, B01000010, B01111110 | ||
}; | ||
|
||
byte animation2[8] = { | ||
B00111100, B01000010, B01000010, B01000010, B01000010, B01000010, B01111110, B01111110 | ||
}; | ||
|
||
byte animation3[8] = { | ||
B00111100, B01000010, B01000010, B01000010, B01000010, B01111110, B01111110, B01111110 | ||
}; | ||
|
||
byte animation4[8] = { | ||
B00111100, B01000010, B01000010, B01000010, B01111110, B01111110, B01111110, B01111110 | ||
}; | ||
|
||
byte animation5[8] = { | ||
B00111100, B01000010, B01000010, B01111110, B01111110, B01111110, B01111110, B01111110 | ||
}; | ||
|
||
byte animation6[8] = { | ||
B00111100, B01000010, B01111110, B01111110, B01111110, B01111110, B01111110, B01111110 | ||
}; | ||
|
||
byte animation7[8] = { | ||
B00111100, B01111110, B01111110, B01111110, B01111110, B01111110, B01111110, B01111110 | ||
}; | ||
|
||
bool skip = render(animation1, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation2, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation3, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation4, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation5, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation6, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation7, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
xmastree by Einstein | ||
*/int xmastree() { | ||
byte animation1[8] = { | ||
B10011000,B00111100,B01111110,B11111111,B00111100,B01111110,B11111111,B00011000 | ||
}; | ||
|
||
byte animation2[8] = { | ||
B00011001,B00111100,B01111110,B11111111,B00111100,B01111110,B11111111,B00011000 | ||
}; | ||
|
||
byte animation3[8] = { | ||
B01011000,B00111100,B01111110,B11111111,B00111100,B01111110,B11111111,B00011000 | ||
}; | ||
|
||
|
||
byte animation4[8] = { | ||
B00011010,B00111100,B01111110,B11111111,B00111100,B01111110,B11111111,B00011000 | ||
}; | ||
|
||
|
||
bool skip = render(animation1, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation2, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation3, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
skip = render(animation4, 500); | ||
if (skip) { | ||
return true; | ||
} | ||
return false; | ||
} |