Git Product home page Git Product logo

Comments (4)

coelner avatar coelner commented on July 2, 2024
  1. You did not full fill the scheme for an issue.
  2. It is not a problem in the library. The originator of your WeatherStation Sketch needs to fix that. ( I assume the project is abandoned)
  3. Did you look at this? https://github.com/finitespace/BME280/blob/master/examples/BME_280_I2C_Test/BME_280_I2C_Test.ino
    Especially line 23 and 28

from bme280.

finitespace avatar finitespace commented on July 2, 2024

You are using a newer version of the BME280 library and the prototype for the read function has changed.

As @coelner has pointed out, the example sketches show how to use the library.

The read function currently takes enumerations to the units:

   BME280::TempUnit tempUnit(BME280::TempUnit_Celsius);
   BME280::PresUnit presUnit(BME280::PresUnit_Pa);

   bme.read(pres, temp, hum, tempUnit, presUnit);

from bme280.

finitespace avatar finitespace commented on July 2, 2024

TheAustrian/Wemos-D1-Mini-BME280-Weather-Station#4

from bme280.

marcdraco avatar marcdraco commented on July 2, 2024

I got here with the same issue. I didn't use the .ino example because I'm using Platform IO with Visual Studio.

That specific example is right in the documentation under "Usage."

At least I know how to fix it which is something! :) but since I'm still very much on the upward part of the learning curve (C++) things like this throw me for a headscratcher.

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.