Supports push buttons and toggle switches Reports # of clicks and length (in millis) of the last click Allows to define internal pull-ups Isolation between buttons Create modular code using callbacks ...
int relay = 12;//connect relay to digital pin 12 of Arduino) int button = 11;//push button to digital pin 11 of Arduino(connet a 10 K resiter to Ground keep it PULLDOWN pinMode(button, INPUT);//Pin 11 ...