Switch debounce - Uno vs Mega 2560

Clarification on switch denouncing code.
I thought I read somewhere when using a Mega 2560 switch debouncing code is "built in" to the 2560 where as with the Uno one has to use code.


There is no hardware debounce functionality on either of those chips (or any other microcontroller I am aware of). Do it in software.

or use a small capacitor

i use millis()

if ( buttonPressed  &&   millis() - prevMill >= 1500  )  {

prevMill = millis();

// do somethings


Thank you for the replies. Going to have to look into this a bit more.