Capacitive pins can be used as buttons similarly to buttons
B. You can use pins
input.onEvent block allows to respond to clicks, double clicks and other classic button events. It can be mounted on any of the capacitive pins. You'd typically use croc-clips to create circuits connected to those pins.
You can read the live button status using
clickevent on pin
A1is used to
play a sound
- the state of button
A7is checked in a
foreverloop to switch between red and blue on the neopixels.