Giter Club home page Giter Club logo

bme280's People

Contributors

dawider10 avatar per1234 avatar sv-zanshin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

bme280's Issues

Select communication method at compile time

In methods getdata and putdata in BME280.h, the communication method (I2C, SPI, soft SPI) is chosen at run time. This causes the respective code and libraries always to be included, using valuable memory.

My suggestion would be to select any or all of these methods by means of #define at compile time. For most users, a single method would suffice, while the default (to maintain compatibility and allow for multiple sensors with different comms methods) could be support for all three.

What's your take on this? I'm happy to provide code once my board has arrived and works with the current version.

No need to wait after Wire.requestFrom()

In the file "BME280.h" there is a while-loop with a timout after the Wire.requestFrom(). That while-loop can be removed. There is nothing to wait for. When the Wire.requestFrom() returns, the I2C transaction has completely finished.

Bit mask off in BME280_Class::iirFilter?

Hi,
while waiting for my BME280 board to arrive (so I couldn't test yet), I've browsed through your library and may have stumbled upon a glitch in BME280_Class::iirFilter.

According to the data sheet, table 26 on page 28 (also table 18 on page 25), IIR filter values are in bits 4,3,2 of the config register. In line 289 of BME280.cpp however, the bit mask is

returnValue = returnValue&B11110001; // Get control reg, mask IIR bits

while all other register values are left or right shifted by 2 (as expected). Shouldn't it be

returnValue = returnValue&B11100011; // Get control reg, mask IIR bits

or am I missing something here?

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.