Can anyone suggest to me how to employ two pressure plugs on one JeeNode? I have one running on port 4. I am not sure how to modify the code to have another plug running on say port 3. Thanks for any help.
Two pressure plugs on one JeeNode
(4 posts) (2 voices)-
Posted 06/06/2010 00:47:21
-
Try this:
PortI2C first (3); BMP085 sensorA (first);PortI2C second (4); BMP085 sensorB (second);....
sensorA.measure(BMP085::TEMP); sensorB.measure(BMP085::TEMP); [etc]Posted 06/06/2010 01:31:24 -
Thanks Jean-Claude. This is exactly what I was looking for. I searched and searched for this info without any luck. Is there documentation anywhere, so that i don't have to bother people with stuff that I could find on my own?
Posted 06/06/2010 16:00:43 -
Glad to hear that it got you going. It's hard to document all this at JeeLabs, it's essentially standard C++, so my suggestion would be to google for some good tips and guides on the web about how to use classes and instances in C++.
Posted 06/06/2010 16:43:08
