Coder Social home page Coder Social logo

Change SDA/SCL about bme280 HOT 18 CLOSED

finitespace avatar finitespace commented on June 3, 2024
Change SDA/SCL

from bme280.

Comments (18)

coelner avatar coelner commented on June 3, 2024 2

IMHO windchill and heat index should not be in this library. You could fork it into an extended library, so we could keep the basic library small and simple. The library should only provide the api, which is based on the native sensor interface.

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024 1

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024

I would like to add wind chill and heat index functions to go with dew point and altitude.

from bme280.

finitespace avatar finitespace commented on June 3, 2024

Christian,

Certainly, do you want to code that and submit a pull request? Or are you asking for support? I have ordered a Wemos board and plan to test the BME against it as soon as I have cycles to spare. I could probably add in wind chill and head index at that time.

Tyler

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024

from bme280.

finitespace avatar finitespace commented on June 3, 2024

Christian,

It might be worthwhile to make a library just for weather calculations. I have not seen one.

Tyler

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024

from bme280.

finitespace avatar finitespace commented on June 3, 2024

Christian,

Any progress? I was thinking about creating a new library for weather calculations and moving the dew point calculation to that. Just haven't gotten around to it. Sounds like you want heat index and wind chill. Any other calculations I should add. I am trying to come up with 5 or 6 before I put it into action.

Tyler

from bme280.

idesignstuff avatar idesignstuff commented on June 3, 2024

from bme280.

coelner avatar coelner commented on June 3, 2024

back to topic. Do not call Wire.begin() at all. It is not the job of a library to init a bus system, only init the specific sub system.
See here: https://www.arduino.cc/en/Reference/WireBegin
and here: esp8266/Arduino#2774

from bme280.

finitespace avatar finitespace commented on June 3, 2024

Coelner,

I agree, we will have to throw some code in it's place to check initialization instead. I will try to make that change when I make the next interface changes.

Tyler

from bme280.

Fbo06 avatar Fbo06 commented on June 3, 2024

Hello, I have an issue with #define ARDUINO_ARCH_ESP8266 it's generate some error of compile
...
#define ARDUINO_ARCH_ESP8266
#include <BME280I2C.h>
...

sketch/BME_280_I2C_Test.ino.cpp.o:(.literal._Z5setupv+0x14): undefined reference to BME280I2C::begin()' sketch/BME_280_I2C_Test.ino.cpp.o: In function setup()':
/var/folders/yf/g28b6chs1kq9th23kx17mlmw0000gn/T/arduino_modified_sketch_53706/BME_280_I2C_Test.ino:40: undefined reference to `BME280I2C::begin()'
collect2: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte ESP32 Dev Module

do you have an advice please ? thank you by advance

from bme280.

coelner avatar coelner commented on June 3, 2024

First of all, try to use the begin(int SDA, int SCL) call. I guess that the esp32 needs also a assignment for those pins.

from bme280.

Fbo06 avatar Fbo06 commented on June 3, 2024

Hello coelner thank you for your response, in fact everything was OK until i upgrade to the 2.1.4 BME280 library. if i correctly understand what you say this begin(int SDA, int SCL) is done in the "Arduino/hardware/espressif/esp32/variants/esp32/pins_arduino.h" file

from bme280.

Fbo06 avatar Fbo06 commented on June 3, 2024

in fact this issue occurs only with the ESP32 board, with the ESP8266 it compile without errors

from bme280.

coelner avatar coelner commented on June 3, 2024

@Fbo06 yeah, look in the other issue #34
the closing #endif is at the wrong position.

from bme280.

finitespace avatar finitespace commented on June 3, 2024

All of this should be fixed in version 2.2.

Christian, you can now add any extra calculation functions to the EnvironmentCalculations files.

Tyler

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.