sahu
Member
Dear All
Plz guied me I need a simple program for LED1 to LED8.
task_1
when S1 unpressed ;
{LED=11111110;}
(HOLD IT for 2sec)
{LED=11111101;}
(HOLD IT for 2sec)
{LED=11111011;}
(HOLD IT for 2sec)
{LED=11110111;}
(HOLD IT for 2sec)
{LED=11101111;}
(HOLD IT for 2sec)
Repeat this function every time till S1 unpressed .
task_2
but when S1 pressed for 1time within 1sec
{LED=11111110;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 2time within 1sec
{LED=11111101;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 3time within 1sec
{LED=11111011;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 4time within 1sec
{LED=11101111;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
Plz guied me I need a simple program for LED1 to LED8.
task_1
when S1 unpressed ;
{LED=11111110;}
(HOLD IT for 2sec)
{LED=11111101;}
(HOLD IT for 2sec)
{LED=11111011;}
(HOLD IT for 2sec)
{LED=11110111;}
(HOLD IT for 2sec)
{LED=11101111;}
(HOLD IT for 2sec)
Repeat this function every time till S1 unpressed .
task_2
but when S1 pressed for 1time within 1sec
{LED=11111110;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 2time within 1sec
{LED=11111101;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 3time within 1sec
{LED=11111011;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1
but when S1 pressed for 4time within 1sec
{LED=11101111;}
(HOLD IT for 20sec)
& ofter 20 sec exit form task_2 & Repeat this function task_1