Fix WioTrackerL1 BLE companion: route sensors to Grove I2C bus (Wire1) #1669
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.
Summary
via Grove connector
ENV_PIN_SDA=PIN_WIRE1_SDAandENV_PIN_SCL=PIN_WIRE1_SCLbuild flagsto
WioTrackerL1_companion_radio_bleenvironmentProblem
Sensors (e.g. BME280) connected to the Grove I2C port (Wire1: D18/D17) were
not detected because
EnvironmentSensorManagerdefaults to scanning the OLEDI2C bus (Wire: D14/D15) when
ENV_PIN_SDA/ENV_PIN_SCLare not defined.Fix
Added the two build flags so that
EnvironmentSensorManageruses Wire1 forsensor probing, matching the physical Grove connector pinout. The OLED display
on Wire is unaffected.
Test plan
WioTrackerL1_companion_radio_blefirmwareFound BME280 at address: 76