15 lines
310 B
Python
15 lines
310 B
Python
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
"""NeoKey Trinkey Capacitive Touch Example"""
|
|
import time
|
|
import board
|
|
import touchio
|
|
|
|
touch = touchio.TouchIn(board.TOUCH)
|
|
|
|
while True:
|
|
if touch.value:
|
|
print("Pad touched!")
|
|
time.sleep(0.1)
|