todbot / blink1

Official software for blink(1) USB RGB LED by ThingM
https://blink1.thingm.com/
Other
953 stars 237 forks source link

Concurrent HID Instructions - Any Issues? #683

Open ByteBo opened 8 months ago

ByteBo commented 8 months ago

Quick question: can I fire off multiple HID commands at once? If so --- what's the deal with conflicts? Any examples?

Also, any rules about how quick I can write these instructions? Like, is there a minimum interval?

Cheers for any help, you lot do a stellar job!

todbot commented 8 months ago

Could you describe more about what you're trying to accomplish and why you're asking about HID commands on the blink1 repo?

If you're asking is there a limit to how fast USB HID operations can happen, then yes, there is OS- and HID-determined limits. Typically this is a HID packet every one millisecond frame for full-speed USB devices and a HID packet every 10 milliseconds for low-speed USB devices.

If you're asking about how fast blink(1) can receive data, it is a low-speed USB device and thus has that low-speed limit of one packet per 10 milliseconds. If you're not asking about blink(1), this perhaps you'd have better luck asking on the hidapi repo.