hirenn
Full Member level 1

Hi
i have connected two switches with P1.0 and P1.1 and led at p1.2
swtches are spst , led is 5mm red
my logic is like
if sw1 and sw2 are not pressed then led off
if sw1 is pressed on led for 10 seconds, and check for sw2 after 10 seconds
if sw1 not pressed led off
if sw2 is pressed led continuous on
if sw2 not pressed then off led and check for sw1
idk how to do this
anyone please help me
thanks
i have connected two switches with P1.0 and P1.1 and led at p1.2
swtches are spst , led is 5mm red
my logic is like
if sw1 and sw2 are not pressed then led off
if sw1 is pressed on led for 10 seconds, and check for sw2 after 10 seconds
if sw1 not pressed led off
if sw2 is pressed led continuous on
if sw2 not pressed then off led and check for sw1
idk how to do this
anyone please help me
thanks