4

I'm playing with my new blink(1), and trying to hook it's command line interface into some of my programs, but the docs are a little limited and I'm struggling to figure out how to run even some seemingly simple commands.

In particular, the CLI docs say:

Usage: 
  blink1-tool <cmd> [options]
where <cmd> is one of:
  ....
  --blink <numtimes>          Blink on/off
  ....

So I try to run blink1-tool --blink 5 and it outputs blink 5 times rgb:0,0,0: and doesn't light up.

How do I use the --blink command?

3

I suspect the fact that blink1-tool --blink 5 doesn't do anything is a bug. Originally --blink just blinked white, but a recent fix allows you to specify the color to blink (the usage script hasn't been updated yet).

The correct syntax for --blink is now:

blink1-tool [options] --rgb r,g,b --blink num

Note that [options] come before <cmd> despite the message in the usage script.

For example, to blink purple on for a second, off for a second, taking a fifth of a second to transition, you would run:

blink1-tool -t 1000 -m 200 --rgb 255,0,255 --blink 5
1

Be sure to set the --rgb switch before --blink

This is valid:

blink1-tool -t 1000 -m200 --rgb 255,0,255 --blink 5

This is not valid:

blink1-tool -t 1000 -m200 --blink 5 --rgb 255,0,255

1
  • Correct. Despite the -- notation suggesting order-independence, --rgb must come before --blink. – dimo414 Dec 15 '12 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.