adafruit/Adafruit_BME280_Library

Compile error in example bme280test

MBurtsev opened this issue · 5 comments

I have compile error, than I try to compile BME280 example in this repo.

img
img

I have instaled library:
img

I also tried manual include:
img

It looks like you are using an updated and unreleased example that will not work with the current release version of the library.

How did you get to that version of the example? Via the Arduino IDE? From copy/pasting from github? Or something else?

Yes, I used the current example from Github. You need to make examples so that they contain an explicit indication of the head files. At first I tried to run without libraries, and there was another problem. For beginners, it is very important that the example works without additional effort. Following this rule, your library will have many more users.

Use the Arduino Library Manager to install the latest release version, including the examples:
Sketch -> Include Library -> Manage Libraries...
And then get at the examples via the Arduino IDE also:
File -> Examples ->

The release versions of everything should work. By grabbing the current version directly from this repo, you are using updates that haven't been officially released yet.

Thanks