From f1351ec439df1661a6e19ac91a0007e4de48f0ad Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Fri, 25 Jun 2021 02:13:16 +0200 Subject: [PATCH] Use correct SDA+SCL pins (#996) ESP8266 uses D1 (5) and D2 (4), ESP32 uses 21 and 22. Both provide defines for SDA and SCL pin numbers though --- main/config_BME280.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/config_BME280.h b/main/config_BME280.h index 7bdf426..a38e551 100644 --- a/main/config_BME280.h +++ b/main/config_BME280.h @@ -59,7 +59,7 @@ unsigned long timebme280 = 0; int BME280_i2c_addr = 0x76; // Bosch BME280 I2C Address // Only supported for ESP -int BME280_PIN_SDA = 21; // PIN SDA -int BME280_PIN_SCL = 22; // PIN SCL +int BME280_PIN_SDA = SDA; // PIN SDA +int BME280_PIN_SCL = SCL; // PIN SCL #endif