From ec3042e63a046a7597ca584142ceed69579cad53 Mon Sep 17 00:00:00 2001 From: Andrey Bodrov Date: Tue, 17 Oct 2023 03:31:54 +0300 Subject: [PATCH] Update bme280.rst add BME280 SPI doc --- components/sensor/bme280.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/components/sensor/bme280.rst b/components/sensor/bme280.rst index 07a38f6cda..7424b8dc91 100644 --- a/components/sensor/bme280.rst +++ b/components/sensor/bme280.rst @@ -10,7 +10,7 @@ The ``bme280`` sensor platform allows you to use your BME280 (`datasheet `__, `Adafruit`_) temperature, pressure and humidity sensors with ESPHome. The sensor is used in *Forced Mode* where measurement is performed and then -the sensor returns to sleep mode until next measurement. The :ref:`I²C ` is +the sensor returns to sleep mode until next measurement. The :ref:`I²C ` or :ref:`SPI ` is required to be set up in your configuration for this sensor to work. .. figure:: images/bme280-full.jpg @@ -23,7 +23,7 @@ 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: bme280 temperature: @@ -36,6 +36,20 @@ required to be set up in your configuration for this sensor to work. address: 0x77 update_interval: 60s + + # Example configuration entry SPI + sensor: + - platform: bme280 + temperature: + name: "BME280 Temperature" + oversampling: 16x + pressure: + name: "BME280 Pressure" + humidity: + name: "BME280 Humidity" + cs_pin: GPIO5 + update_interval: 60s + Configuration variables: ------------------------