code.py
1 # SPDX-FileCopyrightText: 2017 Kattni Rembor for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 import time 6 from adafruit_circuitplayground.express import cpx 7 8 while True: 9 if cpx.touch_A1: 10 print("Touched A1!") 11 time.sleep(0.1)