Coder Social home page Coder Social logo

malokhvii-eduard / arduino-bme280 Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 1.0 82 KB

๐Ÿ’ง Arduino library for Bosch Sensortec BME280 โ€“ combined temperature, pressure, humidity sensor. The library allows using the sensor over I2C or SPI on any board that supports Arduino.

Home Page: https://registry.platformio.org/libraries/malokhvii-eduard/arduino-bme280

License: MIT License

C++ 99.69% Python 0.09% Shell 0.22%
arduino bme280 bosch humidity i2c library platformio pressure spi temperature

arduino-bme280's Introduction

Hi there ๐Ÿ‘‹

I'm ๐Ÿ Software Engineer with 4 years of wide knowledge in Python, Back-end Development, Web Scraping, Containerisation areas with strong experience in Vue.js, Front-end Development, CI/CD, Networking. ๐ŸŽ“ BA & MA in Computer Engineering. ๐Ÿšต๐ŸŠ Active sport participant, โ˜• coffee adept, ๐Ÿ“ท photography enthusiast.

๐Ÿ‘‹ Feel free to contact me with questions and suggestions.

LinkedIn Twitter Telegram Gmail Skype

arduino-bme280's People

Contributors

malokhvii-eduard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

birchtech

arduino-bme280's Issues

Set a specific (setting) parameter, starting from a factory preset

Hello, thanks for the library.

Let's say I want to set the BME280 in Forced mode, while all other settings I would take from the "indoor" preset.
How would I do that, is there an example? Only found examples about enabling one of the presets (Settings.ino) as is.
Thanks

Code is locked in setup if sensor is not present at boot time

Hi!

I just used this library and if sensor is not connected at boot time, then program stays in setup in an infinite loop.

void setup() {
  Serial.begin(9600);
  Wire.begin(D2, D1);

  Serial.println();

  sensor.begin(Bme280TwoWireAddress::Primary);  <---- here
  sensor.setSettings(Bme280Settings::indoor());
}

Bme280.cpp:

  while (isImUpdate()) {   <--- because of this
    delay(20);
  }

I fixed it by changing with:

 isImUpdate();

Is this code lock done intentionally or is it just a mistake?

Thank you, regards,
Peter

Feature request: check if sensor is present

Hello,
using BME280 in I2C with ESP32. Arduino IDE 1.8.19, latest Arduino-ESP32 core (2.0.14).

Even if no sensor is attached I can call sensor.begin(), setSettings(), getTemperature() etc.: I can't seem to have a way to tell if a sensor is actually present/working.

It would be nice to have for, example, begin() returning false if the BME280 is not attached or not responding.
Or maybe it already works this way, but I cannot find the API documentation so I don't know if begin() returns something.

Thanks for reading.

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.