Skip to content

Commit 8f9c3ad

Browse files
committed
fix up readme
1 parent 8a7b56d commit 8f9c3ad

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Introduction
1212
:target: https://discord.gg/nBQh6qu
1313
:alt: Discord
1414
15-
TODO
15+
CircuitPython driver for common low-cost FocalTech capacitive touch chips.
16+
Currently supports FT6206
1617

1718
Dependencies
1819
=============
@@ -28,7 +29,22 @@ This is easily achieved by downloading
2829
Usage Example
2930
=============
3031

31-
TODO
32+
.. code-block:: python
33+
34+
import time
35+
import busio
36+
import board
37+
from ft62xx import adafruit_ft62xx
38+
39+
# Create library object using our Bus I2C port
40+
i2c = busio.I2C(board.SCL, board.SDA)
41+
42+
ft = adafruit_ft62xx.Adafruit_FT6206(i2c, debug=True)
43+
44+
while True:
45+
n = ft.touched
46+
if n:
47+
print(ft.touches)
3248
3349
API Reference
3450
=============

0 commit comments

Comments
 (0)