'>Hextor_1.BSx '============================================================== '{$stamp BS2Sx} '============================================================== 'Introduction to controlling the LEDs. 'Required knowledge:- 'con, output, high, low, pause, toggle, goto '============================================================== 'The program is very simple, 'We first of all declare the two constants, 'Rled (Right LED) and Lled (Left LED) 'then set the pins to OUTPUT and make one HIGH the other LOW 'The initial setting of the LEDs and the PAUSE time can be as 'you like. '============================================================== Rled con 8 'pin, high turns on right green led Lled con 9 'pin, high turns on left red led init: output Rled output Lled high Rled low Lled start:toggle Rled pause 500 toggle Lled pause 500 goto start '------------------------ end program -------------------------