Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time # librería delay
- import board # librería placa
- import touchio # librería touch
- touch_pad = board.A2 # Seteo pin (A0 a A5)
- touch = touchio.TouchIn(touch_pad)
- while True:
- if touch.value:
- print("Tocado!")
- time.sleep(0.05)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement