Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

campapp: increase number of supported RGB LED animation frames to 64 #142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions assets/fire.led
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions assets/flashy.led
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion campapp/rgb_leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string.h>
#include <campapp/rad1oconfig.h>

#define MAX_LED_FRAMES 50
#define MAX_LED_FRAMES 64
#define BUF_SIZE 3*8*MAX_LED_FRAMES+2

unsigned char leds[BUF_SIZE];
Expand Down
4 changes: 2 additions & 2 deletions tools/convertleds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down