Comments (13)
I have seen similar with platformio.
Workaround, delete the SPI related files and use the i2c
from bme280.
This issue has already been fixed in V2.1.01. #13
If you are not using SPI, I would stick with Version 1. There were no functional changes since then. Just added SPI support and API changes.
Tyler
from bme280.
@finitespace, unfortunately it seems not to resolved with the version Platformio library collects:
Compiling .pioenvs/d1_mini/lib/BME280_ID901/BME280Spi.o
Compiling .pioenvs/d1_mini/lib/BME280_ID901/BME280SpiSw.o
/home/user/.platformio/lib/BME280_ID901/src/BME280Spi.cpp:34:17: fatal error: SPI.h: No such file or directory
#include <SPI.h>
^
compilation terminated.
I do not get why SPI is compiled when I only use i2c!
from bme280.
I've got the same issue on v2.1.0, linux mint 18, Arduino 1.8.0:
/home/mjfdreus/Arduino/libraries/BME280/src/BME280SpiSw.cpp:36:29: fatal error: Adafruit_BMP280.h: No such file or directory
#include <Adafruit_BMP280.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Nano.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The Arduino IDE does not have this library with a version higher than version 2.1.0 in the Manage Libraries Window.
BTW, as indicated above, v1.0.0 does work correctly on I2C.
from bme280.
@MacNetron You need to download the latest version from here: https://github.com/finitespace/BME280/releases/tag/Release_Version_2.1.01
Arduino keeps moaning, that the version is unknown. To solve that issue, you need to change the version string in the library.properties back to 2.1.0
from bme280.
I just added a tag for Release 2.1.2. It might take a little for it to be incorporated into the Arduino libraries. But let me know if you can see it after about 24 hours.
Tyler
from bme280.
Works for me.
from bme280.
Issue exists with v3.0.0 and PlatformIO
.piolibdeps/BME280/src/BME280Spi.cpp:34:17: fatal error: SPI.h: No such file or directory
Deleting the BME280Spi* files worked
from bme280.
I have the same error like @psi-4ward
After adding #include <SPI.h> it works on ESP32 :)
from bme280.
Issue still exists :\
from bme280.
Yep, still existing with PlatformIO and Wemos D1 mini.
from bme280.
Still an issue, unfortunately.
At least on the latest PlatformIO and 3.0.0
from bme280.
Still an issue, unfortunately.
At least on the latest PlatformIO and 3.0.0
Just add.
#include <SPI.h>
in your main.cpp
Works on ESP8266 and Wemos D1 mini
from bme280.
Related Issues (20)
- Station météo
- Filter is only applied to temperature and pressure HOT 3
- STM32F103C8 - bme.begin (); - program stops HOT 3
- BME280 v3.0 not work with u8g2 and display HX1230_SW_SPI HOT 3
- The question of the wind chill HOT 3
- non void function without return value HOT 1
- Propose License Change to LGPL/MIT HOT 28
- AbsoluteHumidity and HeatIndex environment calculations missing HOT 1
- Implement CI HOT 1
- Change Wire hard code over to passed in wire instance in I2C class
- BME280 no humidity :( HOT 1
- BME680 integration HOT 1
- SPI.h is inculed althought BME280Spi is not in use HOT 1
- non-void-return issue in 3.0.0 HOT 6
- ESP32 boot loop when calling bme.begin() HOT 3
- I2C to USB
- delete
- delete HOT 1
- Latest commits do not show on Platformio. Tries to revert to "some 3.0.0" version
- Compiler warning when deleting a BME280I2C object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bme280.