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

SPI.h is inculed althought BME280Spi is not in use #128

Open
FrederikWolter opened this issue Aug 18, 2021 · 1 comment
Open

SPI.h is inculed althought BME280Spi is not in use #128

FrederikWolter opened this issue Aug 18, 2021 · 1 comment

Comments

@FrederikWolter
Copy link

Expected behavior

If you are not using the BME280Spi part of the library, I would expect that the SPI.h library is not needed.
As is the case with BME280I2C_BRZO with brzo_i2c.h

Actual behavior

Compiling my project in platformio for VSCode throws the following error:
grafik
I don't really know why the SPI.h could not be found. But the point is it shouldn't be able to be found at all. If I comment out the content of BME280SPI.cpp, my code works fine.

Steps to reporduce the behavior

@chikiball
Copy link

Just Include SPI.h and Wire.h (my errors include SPI.h and Wire.h No such file or directory) in your main.cpp and recompile, It worked for me.

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