Composite-Device: Multiple different reports without delay #282
Replies: 3 comments
-
each HID interface can typically only send 1 report per polling interval e.g 2 or 8 ms. Therefore, even if you stack them together, it won't send that fast. Your other option is using multiple interfaces instead of composite one. I just enable dual HID interfaces #280, but haven't got time to add example sketch, which mcu you are using ? I will try to add one whenever I could. |
Beta Was this translation helpful? Give feedback.
-
I am currently running on an RP2040, in particular a Raspberry Pi Pico. I am running the earlephilhower/arduino-pico core. |
Beta Was this translation helpful? Give feedback.
-
should be possible with https://github.com/adafruit/Adafruit_TinyUSB_Arduino/releases/tag/2.1.0 (2 interfaces). Also an example hid_dual_interfaces is also added. |
Beta Was this translation helpful? Give feedback.
-
How can I send reports of different types and IDs without delaying inbetween? hid_composite.ino uses
delay(10)
to achieve results, but this sacrifices the report rate of my device. How can I do this (in any manner, even completely different approaches) without using any delay?My current sketch:
Beta Was this translation helpful? Give feedback.
All reactions