Squid Button Non-latching Individual
The Squid Button makes it super easy to attach a push switch to a Raspberry Pi.
The Squid Button is in fact a momentary action push switch with trailing leads that end in female header sockets that will fit over GPIO pins on a Raspberry Pi, Node MCU or Particle Photon. To reduce the chance of accidental short-circuits when using the Button, each Button has a built-in 470Ω resistor that does not affect the switching action when connected to a GPIO input, but does mean that if the switch is accidentally connected across power connections your Raspberry Pi will not come to any harm.
Example code can be found here.
Note: Switch and lead colors may vary