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

What's the --ledn for? #62

Closed ACHIJO closed 1 year ago

ACHIJO commented 1 year ago

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: https://github.com/todbot/blink1/issues/673

todbot commented 1 year ago

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 1 year ago

@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.