-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Description
Hi all,
When I enable -D ENV_PIN_SDA=41 and -D ENV_PIN_SCL=42 for my Heltec v3 to use Wire1, I realize Wire connection to OLED has been broken.
https://github.com/arduino-libraries/Arduino_LPS22HB/blob/master/src/BARO.cpp#L48
After a day of tracing, I found this in Arduino_LPS22HB.

The Wire.begin initializes the I2C again and Wire.end will break the Wire connection. Therefore, the OLED will stop working after "Please wait..."

It is a bit weird as this only happens when we enable -D ENV_PIN_SDA=41 and -D ENV_PIN_SCL=42 to use Wire1.
For other sensor libraries like BME280 and BME680, Wire connection is managed by MeshCore instead which is correct.
We may need to modify Arduino_LPS22HB to fit to MeshCore.
Metadata
Metadata
Assignees
Labels
No labels