Skip to content

Commit

Permalink
Update bme280.rst
Browse files Browse the repository at this point in the history
add BME280 SPI doc
  • Loading branch information
apbodrov authored Oct 17, 2023
1 parent 514694e commit f3e48f1
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions components/sensor/bme280.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The ``bme280`` sensor platform allows you to use your BME280
(`datasheet <https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf>`__,
`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 <i2c>` is
the sensor returns to sleep mode until next measurement. The :ref:`I²C <i2c>` or :ref:`SPI <spi>` is
required to be set up in your configuration for this sensor to work.

.. figure:: images/bme280-full.jpg
Expand All @@ -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:
Expand All @@ -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:
------------------------

Expand Down

0 comments on commit f3e48f1

Please sign in to comment.