- 1x Raspberry PI
- 1x HTTM capacitive touch led button
- 3x jumper cables
IC in the schematics represents the following sensor.
Starting from left to right, connect the pins to:
from gpiozero import Button from signal import pause def press(): print("Pressed") def release(): print("Released") led_button = Button(21) led_button.when_pressed = press led_button.when_released = release pause()