Fixed sensor initialization and automatic selection of I2C addresses for BME/BMP sensors#2452
Open
IoTThinks wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
…for BME/BMP sensors - Added i2c_probe to probe sensors before initializing to avoid setup unnecessary sensors and to avoid bugs from unused sensors to impact the main code - Added automatically selection of I2C addresses 0x76 and 0x77 for BME280, BMP280 and BME680.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixed sensor initialization and automatic selection of I2C addresses for BME/BMP sensors
Current issue Heltec V3.2 wire.cpp i2cRead Error #1086.
One time, I saw Adafruit_VL53L0X crashed Heltec boards and this i2c_probe could mitigate / avoid the crash.
This is to avoid the headache to mess around with I2C addresses of BME280, BMP280 and BME680.
If the I2C address is defined, the automatic selection of I2C addresses is ignored.
Tested and works perfect for 3 releases of my MeshCore variant.
