begin()

initialise bus i2c/spi. Initialise sensor with given parameters / settings. Checks chip id. Supported chip IDs:
  • 0x56 - BMP280
  • 0x57 - BMP280
  • 0x58 - BMP280
  • 0x60 - BME280
default exposed parameters setSampling. bpm.begin(addr, theWire, scl, sda)
bpm: a variable of type BMP280.
addr: bus sensor address i2c BME280_ADDRESS(0x77) and BME280_ADDRESS_ALTERNATE(0x76) - default BME280_ADDRESS.
theWire: object pointer Wire - default Wire.
scl: pin SCL - default SCL(9).
sda: pin SDA - default SDA(10).
bool - true on success, false otherwise bpm.begin(spi, sck, miso, mosi, ss)
bpm: a variable of type BMP280.
theWire: object pointer SPI .
sck: custom SCK pin
miso: custom MISO pin
mosi: custom MOSI pin ss: custom SS pin
bool - true on success, false otherwise