Added recorder to be able to stream the current LED data via network. That way you can create nice looking GIF images of the effects - and even develop effects without having to look at the actual LED panel.

This commit is contained in:
2019-09-04 06:05:45 +02:00
parent bf1666fb32
commit 33c2417534
8 changed files with 275 additions and 0 deletions

20
src/tools/generate_gifs.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
IP="$1"
EFFECTS=`egrep "case" ../effects.cpp | tr -s "\t" " " | cut -d" " -f 7 | sort`
mkdir effects
for effect in $EFFECTS; do
[ "$effect" = "cycle" ] && continue
[ "$effect" = "off" ] && continue
[ "$effect" = "koopa" ] && continue
[ "$effect" = "couple_rain" ] && continue
[ "$effect" = "cake" ] && continue
echo " + ./recorder.rb $IP /tmp/effect.gif $effect"
./recorder.rb $IP /tmp/effect.gif $effect
echo
echo " + gifsicle /tmp/effect.gif -o effects/$effect.gif"
gifsicle /tmp/effect.gif -o effects/$effect.gif
done