vcc
 |
 1k to 10k
 |
 *- 10k ---*-- input
 |         |
switch     1-100 nF
 |         |
gnd       gnd