Integrating momentary switch with a Raspberry Pi
From page 16:


  • A current-limiting resistor is built into the LED Lamp, so external
  resistance is not required.


You have the A22NZ-BNM-TWA model, so 6VDC is needed.



I'm assuming that since you are using this button you have 6VDC available. Since you can't drive 6VDC and any significant current with the RPis GPIO, you could do the following:







simulate this circuit &ndash; Schematic created using CircuitLab