Is it possible to connect to multiple Pixy(s) via libpixyusb in Linux? From the API reference, it seems only a single pixy is supported by libpixyusb.
Hello Bi Yi,
This is something that hasn’t been sufficiently tested. We’ve tried it and it seems to work, but we can’t say that it works with an unqualified “yes”.
Edward
Hi Edward,
Thanks for the info. What is the best approach to communicate to different Pixys via libpixyusb? Is it required to modify the source code of libpixyusb to differentiate multiple pixys?
Thanks,
Bi Yi
Hello Bi Yi,
Libpixyusb will grab the first available Pixy it sees, so if you run two instances of libpixyusb, one will grab one pixy and one will grab the other, I assume. I expect that the order will correspond to the order that the usb ports are enumerated. This is going to platform specific. I’m just making some educated guesses. No one here has played much with this.
Edward