Git Product home page Git Product logo

Comments (13)

osos avatar osos commented on July 21, 2024

I have seen similar with platformio.

Workaround, delete the SPI related files and use the i2c

from bme280.

finitespace avatar finitespace commented on July 21, 2024

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.

osos avatar osos commented on July 21, 2024

@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.

MacNetron avatar MacNetron commented on July 21, 2024

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.

coelner avatar coelner commented on July 21, 2024

@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.

finitespace avatar finitespace commented on July 21, 2024

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.

coelner avatar coelner commented on July 21, 2024

Works for me.

from bme280.

psi-4ward avatar psi-4ward commented on July 21, 2024

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.

coding-lemur avatar coding-lemur commented on July 21, 2024

I have the same error like @psi-4ward
After adding #include <SPI.h> it works on ESP32 :)

from bme280.

psi-4ward avatar psi-4ward commented on July 21, 2024

Issue still exists :\

from bme280.

teemuniiranen avatar teemuniiranen commented on July 21, 2024

Yep, still existing with PlatformIO and Wemos D1 mini.

from bme280.

atar-axis avatar atar-axis commented on July 21, 2024

Still an issue, unfortunately.
At least on the latest PlatformIO and 3.0.0

from bme280.

MichaelRChristensen avatar MichaelRChristensen commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.