Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set mode and check if it will be use #36

Open
Jumbo125 opened this issue Jan 8, 2024 · 3 comments
Open

Set mode and check if it will be use #36

Jumbo125 opened this issue Jan 8, 2024 · 3 comments

Comments

@Jumbo125
Copy link

Jumbo125 commented Jan 8, 2024

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
Copy link
Author

Jumbo125 commented Jan 9, 2024

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

@caternuson
Copy link
Contributor

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

ex:

bmp.begin(BMP085_ULTRALOWPOWER);

@Jumbo125
Copy link
Author

Jumbo125 commented Jan 9, 2024

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) {} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants