https://programarfacil.com/blog/utilizar-pulsadores-en-arduino/

Utilitzar programa i agafar un disseny: Pull-up o pull-down:

 

Pull-UP:


 

pulsador pull up

Pull-Down:


pulsador pull down