We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e15fa4 commit c0b077eCopy full SHA for c0b077e
README.rst
@@ -30,7 +30,21 @@ This is easily achieved by downloading
30
Usage Example
31
=============
32
33
-.. 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:: python
34
+
35
+ import time
36
+ import board
37
+ import busio
38
+ import adafruit_adt7410
39
40
+ i2c_bus = busio.I2C(board.SCL, board.SDA)
41
+ adt = adafruit_adt7410.ADT7410(i2c_bus, address=0x48)
42
+ adt.high_resolution = True
43
44
+ while True:
45
+ print(adt.temperature)
46
+ time.sleep(0.5)
47
48
49
Contributing
50
============
0 commit comments