adafruit / Adafruit_BME280_Library

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

Error: 'Wire1' was not declared in this scope in "advancedsettings" example from the Adafruit BME280 library #36

Closed GeoffLethbridge closed 5 years ago

GeoffLethbridge commented 6 years ago

The "advancedsettings" example from the Adafruit BME280 library gives the following error:
/---------------------------------- exit status 1 'Wire1' was not declared in this scope /---------------------------------- Removing 'Wire1' ie bme.begin(&Wire1) -> bme.begin(), fixes the error and the example compiles OK.

themanfrommoon commented 6 years ago

Hi, I have the same Problem?!

xxorde commented 6 years ago

I saw the same error. Looks like the name is different depending on your platform, have a look here: https://forums.adafruit.com/viewtopic.php?f=25&t=83304#p420627

Maybe there is some more elegant solution.

nopnop2002 commented 5 years ago

Remove esp32 from board manager Delete C:\Users\your_user\AppData\Local\Arduino15\packages\esp32 Install esp32 from board manager again.

hoffmannjan commented 5 years ago

Looks like the solution is well known, closing this.