i have it working without the capacitor ( resistor is for pull down).
was wondering if this would help with debouncing.
i also have analog inputs from a potentiometer,
would do same circuit, instead of switch, output of potentiometer and a capacitor towards ground,
to reduce noise...
Sort of (*) - you might need more hysteresis in noisy environments.
The component count for using the built-in pullups and software debouncing is zero, note, which
is a big advantage. However the built-in pullups are very weak and not really up to remotely mounted
switches, just PCB mounted ones.
(*) the time constant of 1ms is too short for most mechanical switches.