I am trying to read a mechanical switch to initialise a LCD every time the switch is turned ON. I use the following code :
|if(ON==0)||// is the switch OFF|
|if(ON==1)||// If turned ON|
The LCD does not initialise correctly when I turn ON the switch.