Comments (6)
Sorry for late reply.
It's my pleasure to receive your advise.
We have tested and found that the library cannot read registers when the sentence been removed.
from dfrobot_bme680.
I mean the last Wire.endTransmission();
in the function readReg(), not the one that is used to write the register address to the chip.
Are you saying that reading the registers before that line can not be done if that line is removed ?
The Wire.endTransmission() should only be used when writing data. It should not be used after a Wire.requestFrom(). That is how the Wire library works. That is how the documentation is.
In case you did remove the right line: It will cause an extra delay, perhaps that is needed. When the Wire library for AVR chips is used, a Wire.endTransmission() on its own puts the sensor address on the I2C bus and the sensor acknowledges that. However, that behaviour can change since it is not documented and should not be used like that.
from dfrobot_bme680.
You mean the line 106 in DFRobot_BME680.cpp right?
We had try to removed it, and it looks like BME680 need that single.
I am a yong engineer, thanks for your explanation. I will do more exploration.
from dfrobot_bme680.
No, line 112.
That is after the Wire.requestFrom().
To write data, the functions Wire.beginTransmission, Wire.write and Wire.endTransmission are used. Those three belong together.
To read data, only the function Wire.requestFrom is used. After that, Wire.available and/or Wire.read can be used, but Wire.requestFrom does the complete I2C transaction on its own.
from dfrobot_bme680.
Understood, thanks.
from dfrobot_bme680.
I see the issue has been solved. I will close this issue.
from dfrobot_bme680.
Related Issues (19)
- Iaq on arduino HOT 2
- Edited Files Under IAQ Docs Are Not Working Anymore w/Esp8266 2.4.0 Lib
- ESP8266 12E HOT 6
- BME680 stop replying HOT 5
- Version with hidden data types HOT 1
- IAQ_I2C Compile Errors
- Measurements only work in loop HOT 2
- Unable to compile DFRobot_BME680_IC2 with Arduino IDE HOT 3
- Normalised Atmospheric Pressure HOT 2
- BSEC BME680 should be updated HOT 1
- To get it working with Arduino (and ESP32S3) HOT 1
- invalid conversion from uint8_t HOT 2
- Altitude Correct? HOT 3
- Gas sensor values HOT 15
- Minor Issue - begin() should return true when successful HOT 4
- Minor issue - readTempture() typo HOT 1
- Typo "reaCalibratedAltitude" HOT 1
- parameters for the sensor HOT 2
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 dfrobot_bme680.