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
This commit is contained in:
Chris van Marle authored and GitHub committed 2021-06-24 19:13:16 -05:00
1 parent 7cfbd3d050
commit f1351ec439
1 file changed
+2 -2
+2 -2
View File
@@ -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