todbot/blink1-tool

What's the --ledn for?

ACHIJO opened this issue · 2 comments

ACHIJO commented

In HID command https://github.com/todbot/blink1/blob/main/docs/blink1-hid-commands.md

We got Set ledn:

- Set ledn                format: { 1, 'l', n,0,0,       0,0, 0 } (2+)

In blink1-tool https://github.com/todbot/blink1-tool , we got ledn as well:

{"ledn",       required_argument, 0,      'l'},

So what's the command for? I tried to use it, but it seems not working.

Related to: todbot/blink1#673

todbot commented

Hi!
"ledn" is "n", aka is which LED to change.
The valid values are: 0= all LEDs, 1=led#1, 2=led#2, etc.

ACHIJO commented

@todbot

According to HID command, Set ledn is a seperate command, and I tried to use it seperately as well, it's not working :(

blink1-tool --ledn 0
blink1-tool --rgb FFFFFF -m 1000 --setpattline 20

blink1-tool --ledn 1
blink1-tool --rgb 00F260 -m 500 --setpattline 21

blink1-tool --ledn 2
blink1-tool --rgb 0575E6 -m 1500 --setpattline 22

blink1-tool --ledn 0
blink1-tool --rgb 000000 -m 1000 --setpattline 23

So on which scenarios, should I use --ledn? I'm confused.