Quote Originally Posted by savnik View Post
I have conect two leds to porta.2 and porta.3.
My problem is when i press 1 or 2 keys on keyboard (PC) the led isn't turn on
My pic is 16f88
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
I change the code and now works , but idon't like this.