This pattern has only two lines: a color and off.
The result if played on repeat is a flashing.
echo "making pattern"
blink1-tool -m 500 --rgb ff00ff --setpattline 0
blink1-tool -m 500 --rgb 000000 --setpattline 1
The --play
commands takes three args: play/stop (1/0), start position, end position.
So this says: "start playing from 0 up to 2 (but not including)"
echo "playing my pattern, infinitely"
blink1-tool --play 1,0,2
echo "changing pattern color (while previous is playing)"
blink1-tool -m 500 --rgb 00ffff --setpattline 0
echo "setting to constant green"
blink1-tool --rgb 00FFFF
echo "new color flashing"
blink1-tool -m 500 --rgb FFFF00 --setpattline 0
blink1-tool --play 1,0,2
blink1-tool --off