Giter Site home page Giter Site logo

Comments (5)

spairo1741 avatar spairo1741 commented on May 26, 2024 1

thanks for this, working. great library.

from forced-bme280.

JVKran avatar JVKran commented on May 26, 2024

Hi @spairo1741,

You can specify the I2C address in the constructor like underneath, where 0x76 is to be replaced with the desired address. The same goes for the bus; Wire can be replaced with another instance connected to other pins.

ForcedClimate climateSensor = ForcedClimate(Wire, 0x76);

One thing to note though, you're using Adafruit_BME280, not this library. Hence, the method above only works when using the library in this repository.

Kind regards,

Jochem

from forced-bme280.

spairo1741 avatar spairo1741 commented on May 26, 2024

by default i2c is pins 21 and 22 in esp32.
I have to change them to the other SDA 3 GPIO and SCL GPIO 16 because I use esp32-cam there are no pins 21 and 22 led out.
that's the problem.

from forced-bme280.

JVKran avatar JVKran commented on May 26, 2024

Hi @spairo1741

I understand. As I've said; Wire can be replaced with another instance connected to other pins. This can be done like underneath.

ForcedClimate climateSensor = ForcedClimate(Wire, 0x76, false); 	// At top
Wire.begin(SDA_PIN, SCL_PIN);		// In setup()

That functionality is part of the Wire library.

Kind regards,

Jochem

from forced-bme280.

JVKran avatar JVKran commented on May 26, 2024

No problem. Glad to be of help and good to hear. 👍

from forced-bme280.

Related Issues (11)

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.