Hello Charudatt,
Your program can use this example as a base,
It could look something like the following:
LED1 var GPIO.0 ; Or whatever pin works on your chip.
LED2 var GPIO.1
LED3 var GPIO.2
FirstLed var byte
SecondLed var byte
ThirdLed var byte
counter var byte
Loop:
;Here your source gives you the values of the LED's length of time to stay on....
FirstLed=7 ;these values you get from your source
SecondLed=10
ThirdLed=12
; Lets turn them all on!!!
High LED1
High LED2
High LED3
counter=FirstLed*1000
Pause(counter);
Low LED1;
counter=(SecondLed-FirstLed*1000)
Pause(counter);
Low LED2;
counter=ThirdLed-SecondLed*1000);
Pause(counter);
Low LED3;
Goto Loop
Bookmarks