summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utilities/blinkenrocket.py82
1 files changed, 79 insertions, 3 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index dd229b9..c3d277c 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -227,9 +227,85 @@ if __name__ == '__main__':
for message in sys.argv[2:]:
b.addFrame(textFrame(message, speed=2))
b.addFrame(textFrame(" \x04 "))
- b.addFrame(animationFrame(map(lambda x : chr(x), [0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255])))
- #for i in xrange(10):
- # b.addFrame(textFrame(str(100*i)))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255]), speed=0))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [
+ 1, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1, 0, 0, 0, 0, 0,
+ 0, 0, 0, 1, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 1, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1,
+ 0, 0, 0, 0, 0, 0, 0, 2,
+ 0, 0, 0, 0, 0, 0, 0, 4,
+ 0, 0, 0, 0, 0, 0, 0, 8,
+ 0, 0, 0, 0, 0, 0, 0, 16,
+ 0, 0, 0, 0, 0, 0, 0, 32,
+ 0, 0, 0, 0, 0, 0, 0, 64,
+ 0, 0, 0, 0, 0, 0, 0, 128,
+ 0, 0, 0, 0, 0, 0, 128, 0,
+ 0, 0, 0, 0, 0, 128, 0, 0,
+ 0, 0, 0, 0, 128, 0, 0, 0,
+ 0, 0, 0, 128, 0, 0, 0, 0,
+ 0, 0, 128, 0, 0, 0, 0, 0,
+ 0, 128, 0, 0, 0, 0,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0, 0, 0,
+ 0, 0, 8, 0, 0, 0, 0, 0,
+ 0, 0, 0, 8, 0, 0, 0, 0,
+ 0, 0, 0, 0, 8, 0, 0, 0,
+ 0, 0, 0, 0, 16, 0, 0, 0,
+ 0, 0, 0, 16, 0, 0, 0, 0,
+ 0, 0, 0, 24, 24, 0, 0, 0,
+ 0, 0, 60, 36, 36, 60, 0, 0,
+ 0, 126, 66, 66, 66, 66, 126, 0,
+ 255, 129, 129, 129, 129, 129, 129, 255,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ ]), speed=15, delay=1))
+ b.addFrame(animationFrame(map(lambda x : chr(x), [
+ 0, 0, 0, 24, 24, 0, 0, 0,
+ 0, 0, 60, 36, 36, 60, 0, 0,
+ 0, 126, 66, 66, 66, 66, 126, 0,
+ 255, 129, 129, 129, 129, 129, 129, 255,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ ]), speed=14, delay=1))
m.setData(b.getMessage())
m.saveAudio(sys.argv[1])