diff --git a/components/sensor/bmp280.rst b/components/sensor/bmp280.rst index ff0c6abbc..e5385c842 100644 --- a/components/sensor/bmp280.rst +++ b/components/sensor/bmp280.rst @@ -8,7 +8,7 @@ BMP280 Temperature+Pressure Sensor The ``bmp280`` sensor platform allows you to use your BMP280 (`datasheet `__, -`Adafruit`_) temperature and pressure sensors with ESPHome. The :ref:`I²C ` is +`Adafruit`_) temperature and pressure sensors with ESPHome. The :ref:`I²C ` or :ref:`SPI ` is required to be set up in your configuration for this sensor to work. .. figure:: images/bmp280-full.jpg @@ -21,9 +21,9 @@ required to be set up in your configuration for this sensor to work. .. code-block:: yaml - # Example configuration entry + # Example configuration entry I2C sensor: - - platform: bmp280 + - platform: bmp280_i2c temperature: name: "Outside Temperature" oversampling: 16x @@ -32,6 +32,17 @@ required to be set up in your configuration for this sensor to work. address: 0x77 update_interval: 60s + # Example configuration entry SPI + sensor: + - platform: bmp280_spi + temperature: + name: "Outside Temperature" + oversampling: 16x + pressure: + name: "Outside Pressure" + cs_pin: GPIO5 + update_interval: 60s + Configuration variables: ------------------------ @@ -48,13 +59,22 @@ Configuration variables: See :ref:`Oversampling Options `. - All other options from :ref:`Sensor `. -- **address** (*Optional*, int): Manually specify the I²C address of - the sensor. Defaults to ``0x77``. Another address can be ``0x76``. - **iir_filter** (*Optional*): Set up an Infinite Impulse Response filter to increase accuracy. One of ``OFF``, ``2x``, ``4x``, ``16x``. Defaults to ``OFF``. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. + +I²C Configuration variables: + +- **address** (*Optional*, int): Manually specify the I²C address of + the sensor. Defaults to ``0x77``. Another address can be ``0x76``. + +SPI Configuration variables: + +- **cs_pin** (*Optional*, :ref:`Pin Schema `): The CS pin of the BMP280 sensor. + + .. figure:: images/bmp280-full.jpg :align: center :width: 60.0%