Comments (5)
thanks for this, working. great library.
from forced-bme280.
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.
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.
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.
No problem. Glad to be of help and good to hear. 👍
from forced-bme280.
Related Issues (11)
- integer version
- Celsius not Celcius!
- Polling option for status register HOT 2
- Measurements are potentially wrong if getTemperatureCelcius() is never called
- Arduino IDE 8.12 problem HOT 1
- Documentation suggestion HOT 1
- Forced-BME280 on 32U4 boards HOT 10
- Double Digit precision is lost HOT 2
- README typo HOT 1
- BME sleepmode failed ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forced-bme280.