Hi guys,

I'm working on migrating one of my library to jallib. This library is to
handle the Sharp GP2D02 IR ranger. I own one, so I didn't think about this
question, but many robot have more than one of these, usually organized as a
pane/block.

So how to deal with multiple GP2D02 instances, within this library ? Since
having multiple instances involved defining 2 pins (Vin, Vout) for each, I
could register them in an array (as a couple of bits), and then accessing
them according to an index. But is there a more generic way we could have to
deal with that kind of things ? If not generic (ie. a library handling
this), should we uniform and have a standard when dealing with that ?

Cheers,
Seb
-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to