This commit is contained in:
siddacious 2020-01-29 20:02:52 -08:00
parent 76cf6f3b0b
commit 34596eb738
3 changed files with 17 additions and 6 deletions

View file

@ -56,7 +56,23 @@ To install in a virtual environment in your current project:
Usage Example
=============
.. todo:: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
.. code-block:: python3
import time
import board
import busio
import adafruit_dps310
i2c = busio.I2C(board.SCL, board.SDA)
dps310 = adafruit_dps310.DPS310(i2c)
while True:
print("Temperature = %.2f *C"%dps310.temperature)
print("Pressure = %.2f hPa"%dps310.pressure)
print("")
time.sleep(1.0)
Contributing
============

View file

@ -25,7 +25,6 @@
Library for the DPS310 Precision Barometric Pressure Sensor
* Author(s): Bryan Siepert
Implementation Notes

View file

@ -23,14 +23,10 @@ Table of Contents
.. toctree::
:caption: Tutorials
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
the toctree above for use later.
.. toctree::
:caption: Related Products
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
the toctree above for use later.
.. toctree::
:caption: Other Links