I have conect two leds to porta.2 and porta.3.
Code:
new var byte
led var PORTA.2
led1 var PORTA.3
main:
serout porta.0, T9600, ["Enter which LED to light (0-1): ", 10, 13]
serin porta.1, T9600, #new
serout porta.0, T9600, ["LED Chosen: ", #new, 10, 13]
Pause 100
if new = 1 then high led
if new = 2 then high led1
goto main
Bookmarks