Skip to content

veryfing_references and solving issue #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ To install in a virtual environment in your current project:
Usage Example
=============

.. code-block:: python
.. code-block:: python3

import board
import digitalio
import time
import adafruit_bme280

Expand All @@ -71,6 +70,8 @@ Usage Example
#bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c, address=0x76)

# OR create sensor object, using the board's default SPI bus.
# SPI setup
# from digitalio import DigitalInOut
#spi = board.SPI()
#bme_cs = digitalio.DigitalInOut(board.D10)
#bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)
Expand Down
11 changes: 7 additions & 4 deletions adafruit_bme280.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@

**Hardware:**

* Adafruit `BME280 Temperature, Humidity and Barometric Pressure sensor
* `Adafruit BME280 Temperature, Humidity and Barometric Pressure sensor
<https://www.adafruit.com/product/2652>`_ (Product ID: 2652)


**Software and Dependencies:**

* Adafruit CircuitPython firmware for the supported boards:
https://github.com/adafruit/circuitpython/releases
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
https://circuitpython.org/downloads

* Adafruit's Bus Device library:
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice

"""
import math
from time import sleep
Expand Down Expand Up @@ -564,7 +567,7 @@ class Adafruit_BME280_SPI(Adafruit_BME280):
.. code-block:: python

import board
from digitalio import DigitalInOut, Direction
from digitalio import DigitalInOut
import adafruit_bme280

Once this is done you can define your `board.SPI` object and define your sensor object
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Table of Contents
.. toctree::
:caption: Tutorials

Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor Learnng Guide <https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout>
Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor Learning Guide <https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout>

.. toctree::
:caption: Related Products
Expand Down
2 changes: 2 additions & 0 deletions examples/bme280_normal_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)

# OR create sensor object, using the board's default SPI bus.
# SPI setup
# from digitalio import DigitalInOut
# spi = board.SPI()
# bme_cs = digitalio.DigitalInOut(board.D10)
# bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)
Expand Down