Skip to content

Commit 0966d41

Browse files
committed
remove todo to make travis happy
1 parent b10c0e8 commit 0966d41

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,23 @@ This is easily achieved by downloading
2929
Usage Example
3030
=============
3131

32-
.. todo:: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
32+
.. 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+
3349
3450
Contributing
3551
============

0 commit comments

Comments
 (0)