Skip to content

Commit d6c8a29

Browse files
committed
readme example
1 parent 1f87c8f commit d6c8a29

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ Usage Example
9494

9595
.. code-block:: python
9696
97+
import time
98+
import board
99+
import adafruit_ft5336
100+
101+
i2c = board.I2C()
102+
touch = adafruit_ft5336.Adafruit_FT5336(i2c)
103+
104+
while True:
105+
t = touch.points
106+
print(t)
107+
time.sleep(0.1)
108+
97109
Documentation
98110
=============
99111
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/ft5336/en/latest/>`_.

0 commit comments

Comments
 (0)