Small fix on BME280 Config & CC1101-TXPower Throttle (#1382)

* https://github.com/1technophile/OpenMQTTGateway/issues/1380
CC1101 TXPower selection

* Creates the possability the define SDA/SCL Pins correct through a compiler switch from the platformio.ini
Sample:
  '-DBME280_PIN_SDA=0'
  '-DBME280_PIN_SCL=2'
This commit is contained in:
Dattel authored and GitHub committed 2023-01-10 20:13:06 +01:00
1 parent c1cedcf333
commit 5fcf02af5a
4 files changed
+31 -8

No files matched your search

+6 -2
View File
@@ -58,8 +58,12 @@ unsigned long timebme280 = 0;
int BME280_i2c_addr = 0x76; // Bosch BME280 I2C Address
// Only supported for ESP
int BME280_PIN_SDA = SDA; // PIN SDA
int BME280_PIN_SCL = SCL; // PIN SCL
#ifndef BME280_PIN_SDA
# define BME280_PIN_SDA SDA
#endif
#ifndef BME280_PIN_SCL
# define BME280_PIN_SCL SCL
#endif
// Oversampling for BME280/BMP280 devices