adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
333 stars 304 forks source link

Compile error in example bme280test #52

Closed MBurtsev closed 5 years ago

MBurtsev commented 5 years ago

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

caternuson commented 5 years ago

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?

MBurtsev commented 5 years ago

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.

caternuson commented 5 years ago

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.

ladyada commented 5 years ago

hiya if you follow https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/arduino-test#install-adafruit-bme280-library-4-6 you should be good to go! current version passes travis, so closing.

MBurtsev commented 5 years ago

Thanks