Plasma 2040 Button & Code Assistance

Rugged Metal Pushbutton - 16mm 6V RGB Momentary : ID 3350 : $10.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Z:\王文雄\英文图纸\GQ系列\GQ16\GQ16 GQ16F-10E-RGB-12V-S-IP67 (1) (adafruit.com)

The pin marked C+ is the Common for the RGB LED’s
The Pin marked Red is to light up the Red LED
The Pin marked Green is to light up the Green LED
The Pin marked Blue is to light up the Blue LED

The other two pins are the ones we are interested in. When the button is pressed, they are shorted together. Wire one pin to Ground and the other to your GPIO pin. Then, when the button is pressed, that GPIO will be grounded (pulled Low). Release the Button and its an open circuit again. You can verify that with an Ohmmeter. Multimeter set to measure resistance.

1 Like