Closed blakejakopovic closed 10 years ago
This is a great idea, but I think I'd rather it be in clj-firmata. clj-serial is for generic serial I/O.
It would make a handy firmata.util
method.
The refactor of list-ports
would be good.
Sure. I'll wait until the adapters have been factored out, and then we can add them. However, would try and group it with the serial adapter implementation, rather than firmata.util
, as it is only useful with serial connections.
I wrote a method to automatically detect an Arduino port based on it's name for the dashboard server I'm working on. It likely only works for Mac, since Linux and Windows don't seem to give ports meaningful names, but it can always be expanded if that changed.
I was going to just submit a PR, but I wasn't sure where, or if you wanted to include arduino specific methods in the library.
Also
list-ports
can likely be refactored (unless there is a reason to useloop
) toLet me know if you'd like me to submit a PR.