whaleygeek / anyio

A GPIO Package that works on any platform
Other
18 stars 19 forks source link

Support for multiple boards #26

Open whaleygeek opened 8 years ago

whaleygeek commented 8 years ago

I want to be able to support multiple boards plugged in simultaneously, as a way to expand the amount of I/O capability in a system.

whaleygeek commented 8 years ago

The issue here is that the existing Python code is not specifically written to allow multiple GPIOClient connects with multiple pyserial runtime instances. It's not that hard to do, but there needs to be a bit of extra architectural refactoring done to expose the right interfaces and allow multiple instances of things. In particular, some docs need to be written explaining how to use it, as the module redirectors for GPIO can't be used (they are singleton) if you want more than one instance of a GPIO expander, you have to use the GPIOClient abstraction directly.