Skip to content

Commit ceb1397

Browse files
committed
mini demo
1 parent 8f9c3ad commit ceb1397

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/print_touches.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import time
2+
import busio
3+
import board
4+
import adafruit_ft62xx
5+
6+
# Create library object using our Bus I2C port
7+
i2c = busio.I2C(board.SCL, board.SDA)
8+
9+
ft = adafruit_ft62xx.Adafruit_FT6206(i2c, debug=False)
10+
11+
while True:
12+
n = ft.touched
13+
if n:
14+
print(ft.touches)

0 commit comments

Comments
 (0)