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 b10c0e8 commit 0966d41Copy full SHA for 0966d41
README.rst
@@ -29,7 +29,23 @@ This is easily achieved by downloading
29
Usage Example
30
=============
31
32
-.. 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
33
+
34
+ import time
35
+ import board
36
+ import busio
37
+ import adafruit_us100
38
39
+ uart = busio.UART(board.TX, board.RX, baudrate=9600)
40
+ # Create a US-100 module instance.
41
+ us100 = adafruit_us100.US100(uart)
42
43
+ while True:
44
+ print("-----")
45
+ print("Temperature: ", us100.temperature)
46
+ print("Distance: ", us100.distance)
47
+ time.sleep(0.5)
48
49
50
Contributing
51
============
0 commit comments