From a1e4aa02ede19eaf29c32fd46cfd5fe3e26b2085 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sun, 3 Jan 2016 04:34:18 +0100 Subject: [PATCH 1/2] campapp: increase number of supported RGB LED animation frames to 64 50 is such a boring number. I would have changed it to 42, but that wouldn't provide backwards compatibility. Therefore, I have rounded it up to clean and neat 64. --- campapp/rgb_leds.c | 2 +- tools/convertleds.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/campapp/rgb_leds.c b/campapp/rgb_leds.c index 399ca3a1..fa900a63 100644 --- a/campapp/rgb_leds.c +++ b/campapp/rgb_leds.c @@ -8,7 +8,7 @@ #include #include -#define MAX_LED_FRAMES 50 +#define MAX_LED_FRAMES 64 #define BUF_SIZE 3*8*MAX_LED_FRAMES+2 unsigned char leds[BUF_SIZE]; diff --git a/tools/convertleds.py b/tools/convertleds.py index e1fe105c..93f74591 100755 --- a/tools/convertleds.py +++ b/tools/convertleds.py @@ -59,9 +59,9 @@ def print_usage(): lines = len(filter(lambda x: x.strip(), contents.splitlines())) - if lines > 50: + if lines > 64: sys.stderr.write('ERROR: failed to convert %s\n' % filename) - sys.stderr.write('currently only animations with a maximum of 50 frames are supported!\n') + sys.stderr.write('currently only animations with a maximum of 64 frames are supported!\n') sys.exit(2) elif lines == 1: From e807831ef8fb95ab5fe4a06729c55058d96afddc Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sun, 3 Jan 2016 04:41:28 +0100 Subject: [PATCH 2/2] RGB LED: extend fire and flashy animations to use 64 frames flashy animaton is complete again, while fire is just slightly longer --- assets/fire.led | 14 ++++++++++++++ assets/flashy.led | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/assets/fire.led b/assets/fire.led index b5140b52..48ed5ece 100644 --- a/assets/fire.led +++ b/assets/fire.led @@ -48,3 +48,17 @@ 0fa200 10a700 0a8700 29bf00 15a400 25a000 003100 25b300 0ea600 0fb700 087200 29bf00 13ab00 21a600 002800 21b600 0b8b00 13b800 087a00 29bf00 11b200 1dac00 003d00 1db900 +129500 17b900 088200 26bf00 0fb900 1baf00 004f00 179a00 +1ba300 1bba00 088a00 29bf00 0dc000 19b200 004d00 117b00 +24b100 1fbb00 089200 1d9400 0dc100 16b300 004b00 0b5c00 +20a200 23bc00 089a00 199800 0dc200 13b400 004900 095400 +1c9300 27bd00 08a200 127900 0dc300 10b500 004700 095f00 +188400 28bd00 07a400 0b5a00 0dc400 0fb800 075b00 096a00 +129200 29bd00 06a600 0a5700 0dc500 0c9900 0e6f00 097500 +0ca000 2abd00 05a800 0b6d00 0dc600 097a00 0e8c00 098000 +06ae00 2bbd00 04aa00 0c8300 0dc600 065b00 0ea900 0e8900 +04b100 27be00 03ac00 0d9900 0dc600 065100 1eb400 139200 +02b400 23bf00 02ae00 0eaf00 0bc500 064700 1bb600 189b00 +00b700 1fc000 01b000 097f00 0fc400 0a5300 18b800 1da400 +00ba00 1caf00 00b200 0a8b00 13c300 0e5f00 15ba00 22ad00 +009b00 199e00 00b400 0b9700 17c200 0e7400 12bc00 27b600 diff --git a/assets/flashy.led b/assets/flashy.led index 53f498c4..f9be544f 100644 --- a/assets/flashy.led +++ b/assets/flashy.led @@ -48,3 +48,17 @@ 101111 110000 110001 110010 110011 110100 110101 110110 110000 110001 110010 110011 110100 110101 110110 110111 110001 110010 110011 110100 110101 110110 110111 111000 +110010 110011 110100 110101 110110 110111 111000 111001 +110011 110100 110101 110110 110111 111000 111001 111010 +110100 110101 110110 110111 111000 111001 111010 111011 +110101 110110 110111 111000 111001 111010 111011 111100 +110110 110111 111000 111001 111010 111011 111100 111101 +110111 111000 111001 111010 111011 111100 111101 111110 +111000 111001 111010 111011 111100 111101 111110 111111 +111001 111010 111011 111100 111101 111110 111111 000000 +111010 111011 111100 111101 111110 111111 000000 000001 +111011 111100 111101 111110 111111 000000 000001 000010 +111100 111101 111110 111111 000000 000001 000010 000011 +111101 111110 111111 000000 000001 000010 000011 000100 +111110 111111 000000 000001 000010 000011 000100 000101 +111111 000000 000001 000010 000011 000100 000101 000110