Thanks Aratti

Quote Originally Posted by aratti View Post
Place a 330 ohms in series to each leds (as suggested in previuos post), and use Toggle command (as suggested in previuos post).

Code:
start:
Pause 50
IF PORTB.0=0 then
    Toggle PORTB.4       
    ENDIF
    
IF PORTB.1=0 then
    Toggle PORTB.5     
    ENDIF
    
IF PORTB.2=0 then
    Toggle PORTB.6     
     ENDIF
    
IF PORTB.3=0 then
    Toggle PORTB.7    
     ENDIF

HoldLoop:
If PortB & %00001111 != 15 then HoldLoop

goto start


Al.