adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
333 stars 304 forks source link

BME280.begin() does not support specifying custom I2C pins #58

Closed lnlp closed 5 years ago

lnlp commented 5 years ago

Adafruit BME280.begin() does not support specifying custom pins for I2C. (While for SPI specifying custom pins is supported.)

ESP32 supports 2 hardware I2C interfaces but BME280 library can only be used for the default I2C pins because custom I2C pins cannot be specified.

Please add an option for specifying custom I2C pins when calling BME280.begin().

lnlp commented 5 years ago

After further investigation this can be solved without a change to BME280.begin().

stodge commented 2 years ago

How did you solve this?

caternuson commented 2 years ago

Check here: https://github.com/espressif/arduino-esp32/issues/3779

Cristianistrate commented 8 months ago

Check here: espressif/arduino-esp32#3779

Can you specify exactly how ? SetPins is working ? Thank you.