todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

Feature request: enable -m flag with --playpattern #21

Closed BrandonDusseau closed 5 years ago

BrandonDusseau commented 5 years ago

I've had several instances where I wanted to eliminate the fade transition from the blink(1) when playing a pattern from the CLI tool. However, it appears that the -m option is ignored when specifying a pattern.

I can work around this problem by repeating a pattern segment with a very short duration first, but this makes the pattern strings rather unwieldy. Here's an example where I alternate red and off for half a second each on opposing sides (similar to a railroad crossing):

blink1-tool.exe --playpattern "0,#000000,0,1,#ff0000,0.1,2,#ff0000,0.5,2,#ff0000,0,1,#000000,0.1,2,#000000,0.5,2"

And here's what it would look like if -m were honored:

blink1-tool.exe --playpattern "0,#000000,0,1,#ff0000,0.5,2,#ff0000,0,1,#000000,0.5,2" -m 0

I'm using version 2.0.2 on Windows 10 Enterprise version 1709.

todbot commented 5 years ago

Hi @BrandonDusseau, Thanks for your patience. I'm finally able to implement this. This will be in blink1-tool v2.0.5

[Commit ab2230d addresses this]

BrandonDusseau commented 5 years ago

Thank you! This is great.