Adafruit-BMP085-Library icon indicating copy to clipboard operation
Adafruit-BMP085-Library copied to clipboard

Set mode and check if it will be use

Open Jumbo125 opened this issue 1 year ago • 3 comments

Hy i have a BMP_180 and want to use the ultra-low mode. I'm not sure how i can check, if the ultralow mode is in use?

i read the *.h file and found the option: #define BMP085_ULTRALOWPOWER 0 is it enough to use this code line after include the libary? how can i check, if it is really in use?

thank you

Jumbo125 avatar Jan 08 '24 09:01 Jumbo125

is there any function to read the byte, to know, what mode is active?

Jumbo125 avatar Jan 09 '24 14:01 Jumbo125

Specify the desired mode in the call to begin(). The default is BMP085_ULTRAHIGHRES.

ex:

bmp.begin(BMP085_ULTRALOWPOWER);

caternuson avatar Jan 09 '24 17:01 caternuson

okay, but how i can it control in the loop? to know if it is "really" set? is it enough to set it in the status "if"?

i have it so in my sktech: Serial.begin(9600); if (!bmp.begin(BMP085_ULTRALOWPOWER)) { Serial.println("Could not find a valid BMP180sensor, check wiring!"); while (1) {} }

Jumbo125 avatar Jan 09 '24 18:01 Jumbo125