Update bme280_environment.rst (#3641)

* Update bme280_environment.rst

update to doc to include use of _i2c or _spi as per recent platform change

* Update cookbook/bme280_environment.rst

---------

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
BigBobbas 2024-02-26 08:55:29 +00:00 committed by GitHub
parent a618617e64
commit 83d95b71ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ BME280 Environment
:image: bme280.jpg
:keywords: BME280
The :doc:`/components/sensor/bme280` is a simple temperature, humidity, and pressure sensor with communication over :ref:`I²C <i2c>`.
The :doc:`/components/sensor/bme280` is a simple temperature, humidity, and pressure sensor with communication over :ref:`I²C <i2c>` or :ref:`SPI <spi>`.
With some simple math it is possible to either determine the height of the sensor, or the current pressure at sea level.
This guide can be applied to any sensor measuring temperature and pressure at the same time, like the
:doc:`/components/sensor/bmp280`, or :doc:`/components/sensor/bme680`.
@ -17,6 +17,7 @@ This guide can be applied to any sensor measuring temperature and pressure at th
The first step is to connect the sensor as described :doc:`here </components/sensor/bme280>`.
After validating the sensor is working, we can proceed and add some formulas.
In the example below, modify ``platform: bme280`` as appropriate for your hardware (either ``bme280_i2c`` or ``bme280_spi``). See :doc:`/components/sensor/bme280` for specific details.
.. code-block:: yaml

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB