Skip to content

Conversation

@Azuresword
Copy link

Summary

  • Fix Wio Tracker L1 BLE companion radio not detecting I2C sensors connected
    via Grove connector
  • Add ENV_PIN_SDA=PIN_WIRE1_SDA and ENV_PIN_SCL=PIN_WIRE1_SCL build flags
    to WioTrackerL1_companion_radio_ble environment

Problem

Sensors (e.g. BME280) connected to the Grove I2C port (Wire1: D18/D17) were
not detected because EnvironmentSensorManager defaults to scanning the OLED
I2C bus (Wire: D14/D15) when ENV_PIN_SDA/ENV_PIN_SCL are not defined.

Fix

Added the two build flags so that EnvironmentSensorManager uses Wire1 for
sensor probing, matching the physical Grove connector pinout. The OLED display
on Wire is unaffected.

Test plan

  • Flashed WioTrackerL1_companion_radio_ble firmware
  • BME280 on Grove I2C detected: Found BME280 at address: 76
  • OLED display still works normally
  • Sensor telemetry data available via companion app

Sensors connected via the Grove I2C connector (D18/D17) were not detected
because the firmware scanned the OLED I2C bus (Wire, D14/D15) by default.
Adding ENV_PIN_SDA/SCL flags directs EnvironmentSensorManager to use Wire1,
matching the physical Grove connector pinout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant