I am trying to write a program for pollling of two push buttons. My main requirements are : the two buttons should be pressed together for 1s. For simple button polling, I wrote this
while(1)
{
if(BUTTON_1 & BUTTON_2)
LED_ON();
}
But how can I add 1s condition?Please suggest ?
Thnxs
Anita
Edited by Jaan, 08 September 2009 - 12:22 PM.
Please use code tags when you are posting your codes!


Sign In
Create Account

Back to top










