Skip to content

Commit

Permalink
Add BME280 SPI Component (#3273)
Browse files Browse the repository at this point in the history
* Update bme280.rst

add BME280 SPI doc

* Update bme280.rst
  • Loading branch information
apbodrov authored Jan 10, 2024
1 parent 15ca0fa commit 3f20eb3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 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,9 +23,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: bme280
- platform: bme280_i2c
temperature:
name: "BME280 Temperature"
oversampling: 16x
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_spi
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 3f20eb3

Please sign in to comment.