C'mon Guys... lets have another five different ways of doing this... then all the students who are using this forum for answers to their homework assignments can each have a different method and not be accused of copying...Code:CounterA var Byte LEDA var PortA.0 LEDB var PortA.1 Low LEDA Low LEDB Start: High LEDB ' PortA.1 goes High For CounterA=1 to 6 ' For Six seconds Gosub BlinkyOne ' Whilst Blinky blinks Next CounterA Low LEDB ' PortA.1 then goes LOW EndLoop: ' and Blinky continues forever Gosub BlinkyOne Goto EndLoop ' until you get bored and switch off ' ' Subroutine Blinks LEDA across 1 Second ' -------------------------------------- BlinkyOne: High LEDA Pause 500 Low LEDA Pause 500 Return
Bookmarks