Skip to content

Commit 043b2e3

Browse files
committed
Add basic example.
1 parent 019cdbd commit 043b2e3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

examples/explorer_hat_pro.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import time
2+
3+
from cap1xxx import Cap1208
4+
5+
captouch = Cap1208()
6+
7+
captouch.start_watching()
8+
9+
while True:
10+
status = captouch.get_input_status()
11+
print(status)
12+
time.sleep(1.0)

0 commit comments

Comments
 (0)