Skip to main content

Button / Switch

  1. Set the GPIO to input mode with pull-up.
  2. Place 100nF capacitor between GPIO and GND.
  3. (Optional) Place 10k resistor between GPIO and 3V3.